Expand description
SAFE network data types.
Re-exports§
pub use register::Address as RegisterAddress;
Modules§
- register
- Register data type
Structs§
- Accumulating
Reward - Actor
History - The history of a transfer Actor.
- BlsKeypair
Share - BLS keypair share.
- Credit
- A debit of tokens at a key.
- Credit
Agreement Proof - The aggregated Replica signatures of the Actor debit cmd.
- Credit
Notification - Notification of a credit sent to a recipient.
- Debit
- A debit of tokens at a key.
- Known
Group Added - The Replica event raised when we learn of a new group PK set.
- MapPermission
Set - Set of user permissions.
- MapSeq
Entry Actions - Sequenced Entry Actions for given entry keys.
- MapSeq
Value - A value in sequenced Map.
- MapUnseq
Entry Actions - Unsequenced Entry Actions for given entry keys.
- Node
Keypairs - 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 - Private Chunk: an immutable chunk of data which can be deleted. Can only be fetched by the listed owner.
- Public
Chunk - Public Chunk: an immutable chunk of data which cannot be deleted.
- Reward
Accumulation - Accumulation of proof for the churn credits.
- Reward
Proposal - Proposed credits resulting from a churn.
- Section
Elders - SeqMap
- Map that is unpublished on the network. This data can only be fetched by the owner or
those in the permissions fields with
Permission::Read
access. - Sequence
- Object storing the Sequence
- Sequence
Private Permissions - Set of private permissions for a user.
- Sequence
Private Policy - Private permissions.
- Sequence
Public Permissions - Set of public permissions for a user.
- Sequence
Public Policy - Public permissions.
- Signature
Share - A signature share, with its index in the combined collection.
- Signed
Credit - An Actor cmd.
- Signed
Credit Share - An Actor cmd.
- Signed
Debit - An Actor cmd.
- Signed
Debit Share - An Actor cmd.
- Signed
Transfer - An Actor cmd.
- Signed
Transfer Share - An Actor cmd.
- Token
- Structure representing a Token amount.
- Transfer
- A cmd to transfer of tokens between two keys.
- Transfer
Agreement Proof - The aggregated Replica signatures of the Actor debit cmd.
- Transfer
Propagated - The crediting Replica event raised when PropagateTransfer cmd has been successful.
- Transfer
Registered - The debiting Replica event raised when RegisterTransfer cmd has been successful.
- Transfer
Validated - The debiting Replica event raised when ValidateTransfer cmd has been successful.
- Transfer
Validation Proposed - The debiting Replica event raised when ProposeTransferValidation cmd has been successful.
- Unseq
Map - Map that is unpublished on the network. This data can only be fetched by the owner or
those in the permissions fields with
Permission::Read
access. - Wallet
History - Contains info on who the replicas of this wallet are, and the wallet history at them.
Enums§
- Chunk
- Object storing an Chunk variant.
- Chunk
Address - Address of an Chunk.
- Chunk
Kind - Kind of an Chunk.
- Data
- Object storing a data variant.
- Data
Address - Object storing an address of data on the network
- Error
- Main error type for the crate.
- Keypair
- Wrapper for different keypair types.
- Map
- Object storing a Map variant.
- MapAction
- Set of Actions that can be performed on the Map.
- MapAddress
- Address of an Map.
- MapEntries
- Wrapper type for entries, which can be sequenced or unsequenced.
- MapEntry
Actions - Wrapper type for entry actions, which can be sequenced or unsequenced.
- MapKind
- Kind of a Map.
- MapSeq
Entry Action - Action for a sequenced Entry.
- MapUnseq
Entry Action - Action for an unsequenced Entry.
- MapValue
- Wrapper type for values, which can be sequenced or unsequenced.
- MapValues
- Wrapper type for lists of sequenced or unsequenced values.
- Owner
Type - Entity that owns the data or tokens.
- Public
Key - Wrapper for different public key types.
- Replica
Event - Events raised by the Replica.
- Secret
Key - Wrapper for different secret key types.
- Sequence
Action - An action on Sequence data type.
- Sequence
Address - Address of a Sequence.
- Sequence
Index - Index of some data.
- Sequence
Kind - Kind of a Sequence.
- Sequence
Permissions - Wrapper type for permissions set, which can be public or private.
- Sequence
Policy - Wrapper type for permissions, which can be public or private.
- Sequence
User - User that can access Sequence.
- Signature
- Wrapper for different signature types.
Constants§
- MAX_
CHUNK_ SIZE_ IN_ BYTES - Maximum allowed size for a serialised Chunk to grow to.
Traits§
- Signing
- Ability to sign and validate data/tokens, as well as specify the type of ownership of that data
Type Aliases§
- Credit
Id - Credit ID is the hash of the DebitId.
- DebitId
- Debit ID.
- MapSeq
Entries - Sequenced entries (key-value pairs, with versioned values).
- MapUnseq
Entries - Unsequenced entries (key-value pairs, without versioned values).
- Msg
- Msg, containing any data to the recipient.
- NodeAge
- Node age, the number of times it has been relocated between sections.
- Private
SeqData - Private Sequence.
- Public
SeqData - Public Sequence.
- Replica
Public KeySet - Public Key Set for a group of transfer replicas.
- Result
- A specialised
Result
type for safecoin. - Sequence
Entries - List of entries.
- Sequence
Entry - An entry in a Sequence.
- Sequence
Op - Data mutation operation to apply to Sequence.