[]Struct private_currency::transactions::Transfer

pub struct Transfer { /* fields omitted */ }

Transfer from one wallet to another wallet.

See crate docs for explanation about fields and workflow of Transfer transactions.

Methods

impl Transfer

Creates message and signs it.

Creates message and appends existing signature.

Returns the hex representation of the binary data. Lower case letters are used (e.g. f9b4ca).

Ed25519 public key of the sender. The transaction must be signed with the corresponding secret key.

Ed25519 public key of the receiver.

Relative delay (measured in block height) to wait for transfer acceptance from the receiver. The delay is counted from the height of a block containing this Transfer.

If the transaction is not Accepted by the receiver when the delay expires, the transfer is automatically rolled back.

Length of the wallet history as perceived by the wallet sender.

This value may be lesser than the real wallet history length. What’s important is that history_len must not be less then last_send_index of the sender’s wallet (i.e., the sender must be aware of all her outgoing transfers). If history_len is less, the transfer is considered invalid.

Commitment to the transferred amount.

Proof that amount is positive.

Proof that the sender’s balance is sufficient relative to amount.

Encryption of the opening for amount.

Trait Implementations

impl Clone for Transfer

Performs copy-assignment from source. Read more

impl AsRef<RawMessage> for Transfer

impl PartialEq<Transfer> for Transfer

impl Debug for Transfer

impl ExonumJson for Transfer

impl ExonumJsonDeserialize for Transfer

impl Serialize for Transfer

impl<'de> Deserialize<'de> for Transfer

impl FromHex for Transfer

impl<'a> SegmentField<'a> for Transfer

impl ServiceMessage for Transfer

impl StorageValue for Transfer

impl Transaction for Transfer
[src]

impl Message for Transfer

Verifies the message using given public key.

Auto Trait Implementations

impl Send for Transfer

impl Sync for Transfer

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<'a, T> Field for T where
    T: SegmentField<'a>, 
[src]

impl<T> CryptoHash for T where
    T: Message
[src]

impl<T> UniqueHash for T where
    T: CryptoHash
[src]

impl<T> Erased for T

impl<T> Erased for T

impl<T> SerializeContent for T where
    T: Serialize
[src]

impl<T> Same for T

Should always be Self