All Projects → libp2p → go-libp2p-consensus

libp2p / go-libp2p-consensus

Licence: other
A consensus interface for LibP2P

Programming Languages

go
31211 projects - #10 most used programming language

go-libp2p-consensus

GoDoc Build Status Discourse posts

A Consensus interface for LibP2P

The LibP2P Consensus interface allows to abstract different consensus algorithms implemented for libp2p with an standarized layer so they can be swapped seamlessly.

Table of Contents

Install

Simply go-get the module:

go get -u github.com/libp2p/go-libp2p-consensus

You can run make deps and make test, although they do very little because this module only declares some interfaces.

Usage

In a different project just:

import "github.com/libp2p/go-libp2p-consensus"

This repo is gomod-compatible, and users of go 1.11 and later with modules enabled will automatically pull the latest tagged release by referencing this package. Upgrades to future releases can be managed using go get, or by editing your go.mod file as described by the gomod documentation.

The code is documented in godoc.org/github.com/libp2p/go-libp2p-consensus.

Contribute

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © Protocol Labs, Inc.


The last gx published version of this module was: 0.0.3: QmZ88KbrvZMJpXaNwAGffswcYKz8EbeafzAFGMCA6MEZKt

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].