Struct private_tx::SigningStore[][src]

pub struct SigningStore { /* fields omitted */ }

Storage for private transactions for signing

Implementations

impl SigningStore[src]

pub fn add_transaction(
    &mut self,
    private_hash: H256,
    transaction: SignedTransaction,
    validators: &Vec<Address>,
    state: Bytes,
    contract_nonce: U256
) -> Result<(), Error>
[src]

Adds new private transaction into the store for signing

pub fn get(&self, private_hash: &H256) -> Option<PrivateTransactionSigningDesc>[src]

Get copy of private transaction’s description from the storage

pub fn remove(&mut self, private_hash: &H256) -> Result<(), Error>[src]

Removes desc from the store (after verification is completed)

pub fn add_signature(
    &mut self,
    private_hash: &H256,
    signature: Signature
) -> Result<(), Error>
[src]

Adds received signature for the stored private transaction

Trait Implementations

impl Default for SigningStore[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Erased for T

impl<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,