Crate sn_transfers[][src]

Implementation of Transfers in the SAFE Network.

Structs

TransferActor

The Actor is the part of an AT2 system that initiates transfers, by requesting Replicas to validate them, and then receive the proof of agreement. It also syncs transfers from the Replicas.

TransferInitiated

This event is raised by the Actor after having successfully created a transfer cmd to send to the Replicas for validation.

TransferRegistrationSent

Raised when the Actor has accumulated a quorum of validations, and produced a RegisterTransfer cmd for sending to Replicas.

TransferValidationReceived

Raised when a Replica responds with a successful validation of a transfer.

TransfersSynched

Raised when the Actor has received f.ex. credits that its Replicas were holding upon the propagation of them from a remote group of Replicas, or unknown debits that its Replicas were holding upon the registration of them from another instance of the same Actor.

Wallet

The balance and history of transfers for a wallet.

WalletReplica

The Replica is the part of an AT2 system that forms validating groups, and signs individual transfers between wallets. Replicas validate requests to debit an wallet, and apply operations that has a valid "debit agreement proof" from the group, i.e. signatures from a quorum of its peers. Replicas don't initiate transfers or drive the algo - only Actors do.

Enums

ActorEvent

Events raised by the Actor.

Error

SafeNetwork Transfers error type

Traits

ReplicaValidator

An implementation of the ReplicaValidator, should contain the logic from upper layers for determining if a remote group of Replicas, represented by a PublicKey, is indeed valid. This is logic from the membership part of the system, and thus handled by the upper layers membership implementation.