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§
- BlsKeypair
Share - BLS keypair share.
- Cache
- A
BTreeMap
-backed cache supporting capacity- and duration-based expiry. - Chunk
- Chunk, an immutable chunk of data
- Chunk
Address - Address of a Chunk.
- Client
Id - 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. - Register
Address - Address of a Register, different from
a
ChunkAddress
in that it also includes a tag. - Replicated
Register Log - Register data exchange.
- Signature
Share - A signature share, with its index in the combined collection.
- Spentbook
Address - Address of a Spentbook.
Enums§
- Data
Address - An address of data on the network
- Error
- Main error type for the crate.
- Keypair
- Wrapper for different keypair types.
- Owner
Type - Entity that owns the data or tokens.
- Public
Key - Wrapper for different public key types.
- Replicated
Data - Secret
Key - Wrapper for different secret key types.
- Signature
- Wrapper for different signature types.
Constants§
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.