Module sn_interface::types
source · [−]Expand description
SAFE network data types.
Re-exports
pub use connections::PeerLinks;
Modules
Connection Handling types
public key types (ed25519) Module providing keys, keypairs, and signatures.
Standardised log markers for various events
Register data type
Encoding utils
Structs
BLS keypair share.
Chunk, an immutable chunk of data
Address of a Chunk.
This is used at a network node for holding the obligatory Ed25519 keypair needed as Adult, and then a BLS keypair share when being promoted to Elder. (Also the corresponding public keys). The Ed25519 is kept as Elder, in case it is demoted.
A Peer with name, derived from its PublicKey
, and an address.
Address of a Register, different from
a ChunkAddress
in that it also includes a tag.
Register data exchange.
Register data exchange.
A signature share, with its index in the combined collection.
Address of a Spentbook.
Enums
An address of data on the network
Main error type for the crate.
Wrapper for different keypair types.
Entity that owns the data or tokens.
Wrapper for different public key types.
A Register
cmd that is stored in a log on Adults.
An address of data on the network
Wrapper for different secret key types.
Errors that can be returned from Comm::send_to_one
.
Wrapper for different signature types.
Constants
Maximum allowed size for a serialised Chunk to grow to.
Traits
Ability to encrypt and decrypt bytes
Ability to sign and validate data/tokens, as well as specify the type of ownership of that data
Functions
Convert type errors to messaging::Errors
for sending scross the network
Type Definitions
A specialised Result
type for types crate.