events

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertVerified

func CertVerified(dest t.ModuleID, err error, origin *apb.VerifyCertOrigin) *eventpb.Event

CertVerified is a response to a VerifyCert event.

func Event

func Event(dest t.ModuleID, ev *apb.Event) *eventpb.Event

Event creates an eventpb.Event out of an availabilitypb.Event.

func NewCert

func NewCert(dest t.ModuleID, cert *apb.Cert, origin *apb.RequestCertOrigin) *eventpb.Event

NewCert is a response to a RequestCert 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

func RequestCert(dest t.ModuleID, origin *apb.RequestCertOrigin) *eventpb.Event

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

func VerifyCert(dest t.ModuleID, cert *apb.Cert, origin *apb.VerifyCertOrigin) *eventpb.Event

VerifyCert can be used to verify validity of an availability certificate.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL