package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Functions
LastBlockFromLedgerOrPanic returns the last block from the ledger.
LastConfigBlockFromLedgerOrPanic returns the last config block from the ledger.
New creates Consenter of type smart bft.
NewChain creates new BFT Smart chain.
NewMetrics creates the Metrics.
ProposalToBlock marshals the proposal the block.
RemoteNodesFromConfigBlock unmarshals the node config from the block metadata.
# Structs
Assembler is the proposal assembler.
BFTChain implements Chain interface to wire with BFT smart library.
ByteBufferTuple is the byte slice tuple.
ConfigBlockValidator struct.
Consenter implementation of the BFT smart based consenter.
ConsenterCertificate denotes a TLS certificate of a consenter.
Egress implementation.
Ingress dispatches Submit and Step requests to the designated per chain instances.
Metrics defines the metrics for the cluster.
RequestInspector inspects incomming requests and validates serialized identity.
RuntimeConfig defines the configuration of the consensus that is related to runtime.
Signature implementation.
Signer implementation.
Synchronizer implementation.
Verifier verifies proposals and signatures.
WALConfig consensus specific configuration parameters from orderer.yaml; for SmartBFT only WALDir is relevant.
# Interfaces
AccessController is used to determine if a signature of a certain client is valid.
go:generate counterfeiter -o mocks/bft_block_deliverer.go --fake-name BFTBlockDeliverer .
BlockPuller is used to pull blocks from other OSN.
Bundle defines the channelconfig resources interface.
ChainGetter obtains instances of ChainSupport for the given channel.
ConfigTxValidator defines the configtx validator interface.
ConfigUpdateProposer produces a ConfigEnvelope.
ConfigValidator interface.
ConsenterVerifier is used to determine whether a signature from one of the consenters is valid.
Comm enables the communications between the nodes.
Filters applies the filters on the outer envelope.
Ledger returns the height and a block with the given number.
Logger specifies the logger.
MessageReceiver receives messages.
ReceiverGetter obtains instances of MessageReceiver given a channel ID.
RPC sends a consensus and submits a request.
Sequencer returns sequences.
SignerSerializer signs messages and serializes identities.
go:generate mockery --dir .
# Type aliases
CreateChainCallback creates a new chain.
NodeIdentitiesByID stores Identities by id.
PolicyManagerRetriever is the policy manager retriever function.