[][src]Struct active_tx::Signees

pub struct Signees { /* fields omitted */ }

Holds an array of Signees

Methods

impl Signees[src]

Signees

These structs are intended to make it simpler to sign transaction packets.

The Signees object holds a vector of Signee's, the Signee object contains the streamid and key. Note: The streamid could also be the key name for a selfsign transaction e.g onboarding.

It is recommended that the macro signees! is used to generate these structures. To see example usage the macro please see its relevant documentation here

pub fn new() -> Signees[src]

New

This method generates a new Signees struct

pub fn add(&mut self, key: Key, streamid: &str) -> &mut Self[src]

Add

This method is the general add method. It takes a key and a stream id, the stream id must match one provided in the input ($i) of the transaction packet.

pub fn add_selfsign(&mut self, key: Key) -> &mut Self[src]

Selfsign

This method is use for transactions that will be selfsigned. Instead of storing a related stream id it will use the keys name. This must still have a corresponding match in the input of the transaction packet.

pub fn get(&self) -> Vec<Signee>[src]

Get

This method returns a vector of Signee structs. The Signee struct contains the streamid and key given via the .add() (or add_selfsign) method above.

Trait Implementations

impl Clone for Signees[src]

Auto Trait Implementations

impl Send for Signees

impl Sync for Signees

impl Unpin for Signees

impl UnwindSafe for Signees

impl RefUnwindSafe for Signees

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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