Module safe_network::types[][src]

Expand description

SAFE network data types.

Modules

Register data type

Encoding utils

Structs

BLS keypair share.

A BTreeMap-backed cache supporting capacity- and duration-based expiry.

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 signature share, with its index in the combined collection.

Structure representing a Token amount.

Enums

Address of Bytes data type.

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.

Address of a Register, different from a ChunkAddress in that it also includes a tag.

Address of a SafeKey.

We also encode the data scope - i.e. accessibility on the SAFE Network.

Wrapper for different secret key types.

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.