[][src]Struct algorand_rs::crypto::MultisigAddress

pub struct MultisigAddress {
    pub version: u8,
    pub threshold: u8,
    pub public_keys: Vec<Ed25519PublicKey>,
}

Convenience struct for handling multisig public identities

Fields

version: u8

the version of this multisig

threshold: u8

how many signatures are needed to fully sign as this address

public_keys: Vec<Ed25519PublicKey>

ordered list of public keys that could potentially sign a message

Implementations

impl MultisigAddress[src]

pub fn new(
    version: u8,
    threshold: u8,
    addresses: &[Address]
) -> Result<MultisigAddress, String>
[src]

pub fn address(&self) -> Address[src]

Generates a checksum from the contained public keys usable as an address

Trait Implementations

impl Clone for MultisigAddress[src]

impl Debug for MultisigAddress[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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

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