{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.0.0-alpha2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sbft\n\nPackage sbft is a generated protocol buffer package.\n\nIt is generated from these files:\n\n\tconfig.proto\n\nIt has these top-level messages:\n\n\tConsensusConfig\n\tJsonConfig\n\tPeer\n\n## Functions\n\n```go\nfunc New(c *ConsensusConfig, sc *backend.StackConfig) multichain.Consenter\n```\nNew creates a new consenter for the SBFT consensus scheme. It accepts messages being delivered via Enqueue, orders them, and then uses the blockcutter to form the messages into blocks before writing to the given ledger.\n\n```go\nfunc SaveConfig(p *persist.Persist, c *ConsensusConfig) error\n```\n\n## Types\n\n```go\ntype ConsensusConfig struct {\n\tConsensus *simplebft.Config `protobuf:\"bytes,1,opt,name=consensus\" json:\"consensus,omitempty\"`\n\tPeers     map[string][]byte `protobuf:\"bytes,2,rep,name=peers\" json:\"peers,omitempty\" protobuf_key:\"bytes,1,opt,name=key\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n}\n```\n\n```go\nfunc ReadJsonConfig(file string) (*ConsensusConfig, error)\n```\n\n```go\nfunc RestoreConfig(p *persist.Persist) (*ConsensusConfig, error)\n```\n\n```go\nfunc (*ConsensusConfig) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ConsensusConfig) GetConsensus() *simplebft.Config\n```\n\n```go\nfunc (m *ConsensusConfig) GetPeers() map[string][]byte\n```\n\n```go\nfunc (*ConsensusConfig) ProtoMessage()\n```\n\n```go\nfunc (m *ConsensusConfig) Reset()\n```\n\n```go\nfunc (m *ConsensusConfig) String() string\n```\n\n```go\ntype JsonConfig struct {\n\tConsensus *simplebft.Config `protobuf:\"bytes,1,opt,name=consensus\" json:\"consensus,omitempty\"`\n\tPeers     []*Peer           `protobuf:\"bytes,2,rep,name=peers\" json:\"peers,omitempty\"`\n}\n```\n\n```go\nfunc (*JsonConfig) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *JsonConfig) GetConsensus() *simplebft.Config\n```\n\n```go\nfunc (m *JsonConfig) GetPeers() []*Peer\n```\n\n```go\nfunc (*JsonConfig) ProtoMessage()\n```\n\n```go\nfunc (m *JsonConfig) Reset()\n```\n\n```go\nfunc (m *JsonConfig) String() string\n```\n\n```go\ntype Peer struct {\n\tAddress string `protobuf:\"bytes,1,opt,name=address\" json:\"address,omitempty\"`\n\tCert    string `protobuf:\"bytes,2,opt,name=cert\" json:\"cert,omitempty\"`\n}\n```\n\n```go\nfunc (*Peer) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (*Peer) ProtoMessage()\n```\n\n```go\nfunc (m *Peer) Reset()\n```\n\n```go\nfunc (m *Peer) String() string\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/orderer/sbft","name":"sbft","synopsis":"Package sbft is a generated protocol buffer package.","isRedistributable":true}
