package
3.1.3+incompatible
Repository: https://github.com/filecoin-project/mir.git
Documentation: pkg.go.dev
# Functions
EmitEvent adds the event to the queue of output events NB: This function works with the (legacy) protoc-generated types and is likely to be removed in the future, with EmitMirEvent taking its place.
EmitMirEvent adds the event to the queue of output events NB: this function works with the Mir-generated types.
HashOneMessage emits a request event to compute hash one message.
HashRequest emits a request event to compute hashes of a batch of messages.
MirOrigin creates a dslpb.Origin protobuf.
NewModule creates a new dsl module with a given id.
Origin creates a dslpb.Origin protobuf.
SendMessage emits a request event to send a message over the network.
SignRequest emits a request event to sign the given message.
UponCondition registers a special type of handler that will be invoked each time after processing a batch of events.
UponEvent registers an event handler for module m.
UponHashResult invokes handler when the module receives a response to a request made by HashRequest with the same context type C.
UponInit invokes handler when the module is initialized.
UponMessageReceived invokes handler when the module receives a message over the network.
UponMirEvent registers an event handler for module m.
UponNewRequests invokes handler when the module receives a NewRequests event.
UponNodeSigsVerified invokes handler when the module receives a response to a request made by VerifyNodeSigs with the same context type C.
UponOneHashResult is a wrapper around UponHashResult that invokes handler on each response in a batch separately.
UponOneNodeSigVerified is a wrapper around UponNodeSigsVerified that invokes handler on each response in a batch separately.
No description provided by the author
UponSignResult invokes handler when the module receives a response to a request made by SignRequest with the same context type C.
VerifyNodeSigs emits a signature verification request event for a batch of signatures.
VerifyOneNodeSig emits a signature verification request event for one signature.
# Interfaces
Module allows creating passive modules in a very natural declarative way.
# Type aliases
ContextID is used to address the internal context store of the dsl module.