[][src]Struct grin_core::libtx::slate::Slate

pub struct Slate {
    pub num_participants: usize,
    pub id: Uuid,
    pub tx: Transaction,
    pub amount: u64,
    pub fee: u64,
    pub height: u64,
    pub lock_height: u64,
    pub participant_data: Vec<ParticipantData>,
}

A 'Slate' is passed around to all parties to build up all of the public transaction data needed to create a finalized transaction. Callers can pass the slate around by whatever means they choose, (but we can provide some binary or JSON serialization helpers here).

Fields

The number of participants intended to take part in this transaction

Unique transaction ID, selected by sender

The core transaction data: inputs, outputs, kernels, kernel offset

base amount (excluding fee)

fee amount

Block height for the transaction

Lock height

Participant data, each participant in the transaction will insert their public data here. For now, 0 is sender and 1 is receiver, though this will change for multi-party

Methods

impl Slate
[src]

Create a new slate

Adds selected inputs and outputs to the slate's transaction Returns blinding factor

Completes callers part of round 1, adding public key info to the slate

Completes caller's part of round 2, completing signatures

Creates the final signature, callable by either the sender or recipient (after phase 3: sender confirmation) TODO: Only callable by receiver at the moment

Verifies any messages in the slate's participant data match their signatures

Trait Implementations

impl Clone for Slate
[src]

Performs copy-assignment from source. Read more

impl Debug for Slate
[src]

impl<'de> Deserialize<'de> for Slate
[src]

impl Serialize for Slate
[src]

Auto Trait Implementations

impl Send for Slate

impl Sync for Slate

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, 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> Any for T where
    T: 'static + ?Sized
[src]

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

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any

impl<T> Erased for T

impl<T> Same for T

Should always be Self