Module safe_network::messaging::node[][src]

Expand description

Node to node messages

Structs

DkgFailureSig

One signed failure for a DKG round by a given PublicKey

DkgFailureSigSet

Dkg failure info for a round

DkgKey

Unique identifier of a DKG session.

ElderCandidates

The information about elder candidates in a DKG round.

JoinAsRelocatedRequest

Request to join a section as relocated from another section

JoinRequest

Request to join a section

KeyedSig

Signature created when a quorum of the section elders has agreed on something.

Network

Container for storing information about other sections in the network.

NodeState

Information about a member of our section.

OtherSection

Information on our sibling section

Peer

Network p2p peer identity. When a node knows another p2p_node as a Peer it’s implicitly connected to it. This is separate from being connected at the network layer, which currently is handled by quic-p2p.

PlainMessage

Section-source message without signature and proof.

PrefixMap

Container that acts as a map whose keys are prefixes.

RelocateDetails

Details of a relocation: which node to relocate, where to relocate it to and what age it should get once relocated.

RelocatePayload

Details of a node relocation and new signed name

RelocatePromise

Relocate node of to section

ResourceProofResponse

Joining peer’s proof of resolvement of given resource proofing challenge.

RoutingMsg

Routing message sent over the network.

Section

Container for storing information about a section. All information about a section

SectionPeers

Container for storing information about members of our section.

SectionSigned

A value together with the signature that it was agreed on by the majority of the section elders.

SigShare

Single share of KeyedSig.

SignatureAggregator

Aggregator for signature shares for arbitrary payloads.

SignedRelocateDetails

RoutingMsg with Variant::Relocate in a convenient wrapper.

Enums

Error

Error returned from SignatureAggregator::add.

JoinAsRelocatedResponse

Response to a request to join a section as relocated

JoinRejectionReason

Reason of a join request being rejected

JoinResponse

Response to a request to join a section

MembershipState

Node’s current section membership state

NodeCmd
NodeCmdError
NodeDataError
NodeDataQueryResponse
NodeEvent
NodeMsg
NodeQuery

Query originating at a node

NodeQueryResponse
NodeRewardQuery

Reward query that is sent between sections.

NodeSystemCmd

Cmds related to the running of a node.

NodeSystemQuery
NodeSystemQueryResponse
NodeTransferCmd
NodeTransferError
NodeTransferQuery
NodeTransferQueryResponse
Proposal

A step in the Propose-Broadcast-Aggregate-Execute workflow. A proposal about the state of the network This can be a result of seeing a node come online, go offline, changes to section info etc. Anything where we need section authority before action can be taken

SrcAuthority

Source authority of a message. Src of message and authority to send it. Authority is validated by the signature. Messages do not need to sign this field as it is all verifiable (i.e. if the sig validates agains the pub key and we know th epub key then we are good. If the proof is not recognised we ask for a longer chain that can be recognised). Therefore we don’t need to sign this field.

Variant

Message variant