Module sn_interface::types
source · Expand description
SAFE network data types.
Re-exports
pub use crate::messaging::data::Error as DataError;
pub use crate::messaging::data::RegisterCmd;
pub use crate::messaging::SectionSig;
Modules
- Fees for a spend.
- 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.
- A
BTreeMap
-backed cache supporting capacity- and duration-based expiry. - Chunk, an immutable chunk of data
- Address of a Chunk.
- The id of a client is the name, derived from its
PublicKey
, and its address. - The id of a node is the name, derived from its
PublicKey
, and its address. - A Participant is either a Client or a Node, participating in the network. It consists of the name, derived from its
PublicKey
, and its address. - Address of a Register, different from a
ChunkAddress
in that it also includes a tag. - 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.
- Wrapper for different secret key types.
- Wrapper for different signature types.
Constants
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
- Construct a BLS secret key from a hex-encoded string.
Type Definitions
- A specialised
Result
type for types crate.