[][src]Enum wagyu_zcash::format::ZcashFormat

pub enum ZcashFormat {
    P2PKH,
    P2SH,
    Sprout,
    Sapling(Option<[u8; 11]>),
}

Represents the format of a Zcash address

Variants

P2PKH

Pay-to-Pubkey Hash, transparent address beginning with "t1" or "tm"

P2SH

Pay-to-Script Hash, transparent address beginning with "t3" or "t2"

Sprout

Sprout shielded address beginning with "zc" or "zt"

Sapling(Option<[u8; 11]>)

Sapling shielded address beginning with "zs" or "ztestsapling"

Methods

impl ZcashFormat[src]

pub fn to_address_prefix<N: ZcashNetwork>(&self) -> Vec<u8>[src]

Returns the address prefix of the given network.

pub fn from_address_prefix(prefix: &Vec<u8>) -> Result<Self, AddressError>[src]

Returns the format of the given address prefix.

Trait Implementations

impl Clone for ZcashFormat[src]

impl Debug for ZcashFormat[src]

impl Display for ZcashFormat[src]

impl Eq for ZcashFormat[src]

impl Format for ZcashFormat[src]

impl Hash for ZcashFormat[src]

impl Ord for ZcashFormat[src]

impl PartialEq<ZcashFormat> for ZcashFormat[src]

impl PartialOrd<ZcashFormat> for ZcashFormat[src]

impl Serialize for ZcashFormat[src]

impl StructuralEq for ZcashFormat[src]

impl StructuralPartialEq for ZcashFormat[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> ToString for T where
    T: Display + ?Sized
[src]

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>,