Documentation ¶
Index ¶
- type Block
- type BlockData
- type BlockHeader
- type Chain
- type Egress
- type FwdMessage
- func (*FwdMessage) Descriptor() ([]byte, []int)
- func (m *FwdMessage) GetPayload() []byte
- func (m *FwdMessage) GetSender() uint64
- func (*FwdMessage) ProtoMessage()
- 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
- type NetworkOptions
- type Node
- func (n *Node) AssembleProposal(metadata []byte, requests [][]byte) (nextProp bft.Proposal, remainder [][]byte)
- func (n *Node) BroadcastConsensus(m *smartbftprotos.Message)
- func (n *Node) Deliver(proposal bft.Proposal, signature []bft.Signature)
- func (n *Node) Nodes() []uint64
- func (*Node) RequestID(req []byte) bft.RequestInfo
- func (n *Node) SendConsensus(targetID uint64, message *smartbftprotos.Message)
- func (n *Node) SendTransaction(targetID uint64, request []byte)
- func (*Node) Sign(msg []byte) []byte
- func (n *Node) SignProposal(bft.Proposal) *bft.Signature
- func (n *Node) Start()
- func (n *Node) Stop()
- func (*Node) Sync() (smartbftprotos.ViewMetadata, uint64)
- func (*Node) VerificationSequence() uint64
- func (*Node) VerifyConsenterSig(_ bft.Signature, prop bft.Proposal) 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
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Sequence uint64 PrevHash string Transactions []Transaction }
type BlockHeader ¶
func BlockHeaderFromBytes ¶
func BlockHeaderFromBytes(rawHeader []byte) *BlockHeader
func (BlockHeader) ToBytes ¶
func (header BlockHeader) ToBytes() []byte
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func (*Chain) Order ¶
func (chain *Chain) Order(txn Transaction) error
type FwdMessage ¶
type FwdMessage struct { Sender uint64 `protobuf:"varint,1,opt,name=sender,proto3" json:"sender,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FwdMessage) Descriptor ¶
func (*FwdMessage) Descriptor() ([]byte, []int)
func (*FwdMessage) GetPayload ¶
func (m *FwdMessage) GetPayload() []byte
func (*FwdMessage) GetSender ¶
func (m *FwdMessage) GetSender() uint64
func (*FwdMessage) ProtoMessage ¶
func (*FwdMessage) ProtoMessage()
func (*FwdMessage) Reset ¶
func (m *FwdMessage) Reset()
func (*FwdMessage) String ¶
func (m *FwdMessage) String() string
func (*FwdMessage) XXX_DiscardUnknown ¶
func (m *FwdMessage) XXX_DiscardUnknown()
func (*FwdMessage) XXX_Marshal ¶
func (m *FwdMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FwdMessage) XXX_Merge ¶
func (m *FwdMessage) XXX_Merge(src proto.Message)
func (*FwdMessage) XXX_Size ¶
func (m *FwdMessage) XXX_Size() int
func (*FwdMessage) XXX_Unmarshal ¶
func (m *FwdMessage) XXX_Unmarshal(b []byte) error
type NetworkOptions ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) AssembleProposal ¶
func (*Node) BroadcastConsensus ¶
func (n *Node) BroadcastConsensus(m *smartbftprotos.Message)
func (*Node) SendConsensus ¶
func (n *Node) SendConsensus(targetID uint64, message *smartbftprotos.Message)
func (*Node) SendTransaction ¶
func (*Node) Sync ¶
func (*Node) Sync() (smartbftprotos.ViewMetadata, uint64)
func (*Node) VerificationSequence ¶
func (*Node) VerifyConsenterSig ¶
func (*Node) VerifyProposal ¶
func (*Node) VerifyRequest ¶
func (*Node) VerifyRequest(val []byte) (bft.RequestInfo, error)
type Transaction ¶
func TransactionFromBytes ¶
func TransactionFromBytes(rawTxn []byte) *Transaction
func (Transaction) ToBytes ¶
func (txn Transaction) ToBytes() []byte
Click to show internal directories.
Click to hide internal directories.