Documentation ¶
Index ¶
- func CertVerified(dest t.ModuleID, err error, origin *apb.VerifyCertOrigin) *eventpb.Event
- func Event(dest t.ModuleID, ev *apb.Event) *eventpb.Event
- func NewCert(dest t.ModuleID, cert *apb.Cert, origin *apb.RequestCertOrigin) *eventpb.Event
- func ProvideTransactions(dest t.ModuleID, txs []*requestpb.Request, ...) *eventpb.Event
- func RequestCert(dest t.ModuleID, origin *apb.RequestCertOrigin) *eventpb.Event
- func RequestTransactions(dest t.ModuleID, cert *apb.Cert, origin *apb.RequestTransactionsOrigin) *eventpb.Event
- func VerifyCert(dest t.ModuleID, cert *apb.Cert, origin *apb.VerifyCertOrigin) *eventpb.Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertVerified ¶
CertVerified is a response to a VerifyCert event.
func ProvideTransactions ¶
func ProvideTransactions(dest t.ModuleID, txs []*requestpb.Request, origin *apb.RequestTransactionsOrigin) *eventpb.Event
ProvideTransactions is a response to a RequestTransactions event.
func RequestCert ¶
RequestCert is used by the consensus layer to request an availability certificate for a batch of transactions from the availability layer.
func RequestTransactions ¶
func RequestTransactions(dest t.ModuleID, cert *apb.Cert, origin *apb.RequestTransactionsOrigin) *eventpb.Event
RequestTransactions allows reconstructing a batch of transactions by a corresponding availability certificate. It is possible that some of the transactions are not stored locally on the node. In this case, the availability layer will pull these transactions from other nodes.
func VerifyCert ¶
VerifyCert can be used to verify validity of an availability certificate.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.