Documentation ¶
Index ¶
- type App
- func (a *App) AssembleProposal(metadata []byte, requests [][]byte) (nextProp types.Proposal, remainder [][]byte)
- func (a *App) Connect()
- func (a *App) ConnectTo(target uint64)
- func (a *App) Deliver(proposal types.Proposal, _ []types.Signature)
- func (a *App) Disconnect()
- func (a *App) DisconnectFrom(target uint64)
- func (a *App) Mute()
- func (a *App) RequestID(req []byte) types.RequestInfo
- func (a *App) Restart()
- func (a *App) Sign([]byte) []byte
- func (a *App) SignProposal(types.Proposal) *types.Signature
- func (a *App) Submit(req Request)
- func (a *App) Sync() (smartbftprotos.ViewMetadata, uint64)
- func (a *App) UnMute()
- func (a *App) VerificationSequence() uint64
- func (a *App) VerifyConsenterSig(signature types.Signature, prop types.Proposal) error
- func (a *App) VerifyProposal(proposal types.Proposal) ([]types.RequestInfo, error)
- func (a *App) VerifyRequest(val []byte) (types.RequestInfo, error)
- func (a *App) VerifySignature(signature types.Signature) error
- type AppRecord
- type Batch
- 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 Network
- type Node
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { ID uint64 Delivered chan *AppRecord Consensus *consensus.Consensus Setup func() Node *Node // contains filtered or unexported fields }
func (*App) AssembleProposal ¶
func (*App) Disconnect ¶
func (a *App) Disconnect()
func (*App) DisconnectFrom ¶
func (*App) Sync ¶
func (a *App) Sync() (smartbftprotos.ViewMetadata, uint64)
func (*App) VerificationSequence ¶
func (*App) VerifyConsenterSig ¶
func (*App) VerifyProposal ¶
func (*App) VerifyRequest ¶
func (a *App) VerifyRequest(val []byte) (types.RequestInfo, 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 Network ¶
func (Network) AddOrUpdateNode ¶
type Node ¶
func (*Node) SendConsensus ¶
func (node *Node) SendConsensus(targetID uint64, m *smartbftprotos.Message)
func (*Node) SendTransaction ¶
Click to show internal directories.
Click to hide internal directories.