Module safe_network::types [−][src]
Expand description
SAFE network data types.
Re-exports
pub use prefix_map::PrefixMap;
Modules
Container that acts as a map whose keys are prefixes.
Register data type
Encoding utils
Structs
BLS keypair share.
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.
Private Chunk: an immutable chunk of data which can be deleted. Can only be fetched by the listed owner.
Public Chunk: an immutable chunk of data which cannot be deleted.
A signature share, with its index in the combined collection.
Structure representing a Token amount.
Enums
Object storing an Chunk variant.
Address of an Chunk.
Kind of an Chunk.
Object storing a data variant.
Object storing 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.
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 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 safecoin.