Crate sn_data_types[][src]

Expand description

SAFE network data types.

Modules

Register data type

Structs

The history of a transfer Actor.

BLS keypair share.

A debit of tokens at a key.

The aggregated Replica signatures of the Actor debit cmd.

Notification of a credit sent to a recipient.

A debit of tokens at a key.

The Replica event raised when we learn of a new group PK set.

Set of user permissions.

Sequenced Entry Actions for given entry keys.

A value in sequenced Map.

Unsequenced Entry Actions for given entry keys.

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.

Accumulation of proof for the churn credits.

Proposed credits resulting from a churn.

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.

Object storing the Sequence

Set of private permissions for a user.

Private permissions.

Set of public permissions for a user.

Public permissions.

A signature share, with its index in the combined collection.

An Actor cmd.

An Actor cmd.

An Actor cmd.

An Actor cmd.

An Actor cmd.

An Actor cmd.

Structure representing a Token amount.

A cmd to transfer of tokens between two keys.

The aggregated Replica signatures of the Actor debit cmd.

The crediting Replica event raised when PropagateTransfer cmd has been successful.

The debiting Replica event raised when RegisterTransfer cmd has been successful.

The debiting Replica event raised when ValidateTransfer cmd has been successful.

The debiting Replica event raised when ProposeTransferValidation cmd has been successful.

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.

Contains info on who the replicas of this wallet are, and the wallet history at them.

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.

Object storing a Map variant.

Set of Actions that can be performed on the Map.

Address of an Map.

Wrapper type for entries, which can be sequenced or unsequenced.

Wrapper type for entry actions, which can be sequenced or unsequenced.

Kind of a Map.

Action for a sequenced Entry.

Action for an unsequenced Entry.

Wrapper type for values, which can be sequenced or unsequenced.

Wrapper type for lists of sequenced or unsequenced values.

Entity that owns the data or tokens.

Wrapper for different public key types.

Address of a Register.

Events raised by the Replica.

Wrapper for different secret key types.

An action on Sequence data type.

Address of a Sequence.

Index of some data.

Kind of a Sequence.

Wrapper type for permissions set, which can be public or private.

Wrapper type for permissions, which can be public or private.

User that can access Sequence.

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

Type Definitions

Credit ID is the hash of the DebitId.

Debit ID.

Sequenced entries (key-value pairs, with versioned values).

Unsequenced entries (key-value pairs, without versioned values).

Msg, containing any data to the recipient.

Node age, the number of times it has been relocated between sections.

Private Sequence.

Public Sequence.

Public Key Set for a group of transfer replicas.

A specialised Result type for safecoin.

List of entries.

An entry in a Sequence.

Data mutation operation to apply to Sequence.