Versions in this module Expand all Collapse all v2 v2.3.0 Aug 16, 2021 Changes in this version + type Block struct + PrevHash string + Sequence uint64 + Transactions []Transaction + type BlockData struct + Transactions [][]byte + func BlockDataFromBytes(rawBlock []byte) *BlockData + func (b BlockData) ToBytes() []byte + type BlockHeader struct + DataHash string + PrevHash string + Sequence int64 + func BlockHeaderFromBytes(rawHeader []byte) *BlockHeader + func (header BlockHeader) ToBytes() []byte + type Chain struct + func NewChain(id uint64, in Ingress, out Egress, logger smart.Logger, opts NetworkOptions, ...) *Chain + func (chain *Chain) Listen() Block + func (chain *Chain) Order(txn Transaction) error + type Egress map[int]chan<- proto.Message + type FwdMessage struct + Payload []byte + Sender uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*FwdMessage) Descriptor() ([]byte, []int) + func (*FwdMessage) ProtoMessage() + func (m *FwdMessage) GetPayload() []byte + func (m *FwdMessage) GetSender() uint64 + func (m *FwdMessage) Reset() + func (m *FwdMessage) String() string + func (m *FwdMessage) XXX_DiscardUnknown() + func (m *FwdMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *FwdMessage) XXX_Merge(src proto.Message) + func (m *FwdMessage) XXX_Size() int + func (m *FwdMessage) XXX_Unmarshal(b []byte) error + type Ingress map[int]<-chan proto.Message + type NetworkOptions struct + BatchSize uint64 + BatchTimeout time.Duration + NumNodes int + type Node struct + func NewNode(id uint64, in Ingress, out Egress, deliverChan chan<- *Block, ...) *Node + func (*Node) AuxiliaryData(_ []byte) []byte + func (*Node) RequestID(req []byte) bft.RequestInfo + func (*Node) RequestsFromProposal(proposal bft.Proposal) []bft.RequestInfo + func (*Node) Sign(msg []byte) []byte + func (*Node) Sync() bft.SyncResponse + func (*Node) VerificationSequence() uint64 + func (*Node) VerifyConsenterSig(_ bft.Signature, prop bft.Proposal) ([]byte, error) + func (*Node) VerifyProposal(proposal bft.Proposal) ([]bft.RequestInfo, error) + func (*Node) VerifyRequest(val []byte) (bft.RequestInfo, error) + func (*Node) VerifySignature(signature bft.Signature) error + func (n *Node) AssembleProposal(metadata []byte, requests [][]byte) bft.Proposal + func (n *Node) Deliver(proposal bft.Proposal, signature []bft.Signature) bft.Reconfig + func (n *Node) Nodes() []uint64 + func (n *Node) SendConsensus(targetID uint64, message *smartbftprotos.Message) + func (n *Node) SendTransaction(targetID uint64, request []byte) + func (n *Node) SignProposal(bft.Proposal, []byte) *bft.Signature + func (n *Node) Start() + func (n *Node) Stop() + type Transaction struct + ClientID string + ID string + func TransactionFromBytes(rawTxn []byte) *Transaction + func (txn Transaction) ToBytes() []byte Other modules containing this package github.com/SmartBFT-Go/consensus