Module net

Module net 

Source
Expand description

Network messages

Structs§

BadPrivateShare
A bad private share
DkgBegin
DKG begin message from coordinator to signers
DkgEnd
DKG end message from signers to coordinator
DkgEndBegin
DKG end begin message from signer to all signers and coordinator
DkgPrivateBegin
DKG private begin message from signer to all signers and coordinator
DkgPrivateShares
DKG private shares message from signer to all signers and coordinator
DkgPublicShares
DKG public shares message from signer to all signers and coordinator
NonceRequest
Nonce request message from coordinator to signers
NonceResponse
Nonce response message from signers to coordinator
Packet
Network packets need to be signed so they can be verified
SignatureShareRequest
Signature share request message from coordinator to signers
SignatureShareResponse
Signature share response message from signers to coordinator

Enums§

DkgFailure
Final DKG status after receiving public and private shares
DkgStatus
Final DKG status after receiving public and private shares
Message
Encapsulation of all possible network message types
SignatureType
Signature type

Traits§

Signable
Trait to encapsulate sign/verify, users only need to impl hash