Module 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
Fees for a spend.
keys
public key types (ed25519) Module providing keys, keypairs, and signatures.
log_markers
Standardised log markers for various events
register
Register data type
utils
Encoding utils

Structs§

BlsKeypairShare
BLS keypair share.
Cache
A BTreeMap-backed cache supporting capacity- and duration-based expiry.
Chunk
Chunk, an immutable chunk of data
ChunkAddress
Address of a Chunk.
ClientId
The id of a client is the name, derived from its PublicKey, and its address.
NodeId
The id of a node is the name, derived from its PublicKey, and its address.
Participant
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.
RegisterAddress
Address of a Register, different from a ChunkAddress in that it also includes a tag.
ReplicatedRegisterLog
Register data exchange.
SignatureShare
A signature share, with its index in the combined collection.
SpentbookAddress
Address of a Spentbook.

Enums§

DataAddress
An address of data on the network
Error
Main error type for the crate.
Keypair
Wrapper for different keypair types.
OwnerType
Entity that owns the data or tokens.
PublicKey
Wrapper for different public key types.
ReplicatedData
SecretKey
Wrapper for different secret key types.
Signature
Wrapper for different signature types.

Constants§

SPENTBOOK_TYPE_TAG

Traits§

Encryption
Ability to encrypt and decrypt bytes
Signing
Ability to sign and validate data/tokens, as well as specify the type of ownership of that data

Functions§

bls_secret_from_hex
Construct a BLS secret key from a hex-encoded string.

Type Aliases§

Result
A specialised Result type for types crate.