Expand description

The Safe Network messaging interface.

This modules defines the messages that can be handled by the Safe Network. In particular:

  • This module contains types that are common across the messaging API.
  • The serialisation module defines the wire format and message (de)serialization API.
  • The data module defines the data messages that clients and nodes send, and their possible responses.
  • The signature_aggregator module defines the BLS signature aggregator.
  • The system module defines Operational Messages that can be exchanged on the network.

Re-exports

pub use self::serialisation::NodeMsgAuthority;

Modules

Data messages that clients and nodes can send. Data messages and their possible responses.

The wire format and message (de)serialization API.

BLS Signature aggregator

Operational Messages that can be exchanged on the network.

Structs

Verified authority.

Authority of a single peer that uses it’s BLS Keyshare to sign the message.

A destination for a msg.

An EndUser is represented by a name which is mapped to

Unique ID for messages.

Authority of a single peer.

Authority of a whole section.

Details of section authority.

Authority of a network peer.

In order to send a message over the wire, it needs to be serialized along with a header (WireMsgHeader) which contains the information needed by the recipient to properly deserialize it. The WireMsg struct provides the utilities to serialize and deserialize messages.

Enums

Source authority of a message.

PublicKey of the entity that created/handled its associated WireMsg

Errors that can occur when interacting with messaging APIs.

Type of message. Note this is part of this crate’s public API but this enum is never serialised or even part of the message that is sent over the wire.

Constants

Constant byte length of MsgId.

Traits

Verify authority.

Type Definitions

A specialised Result type for messaging APIs.