[][src]Enum wagyu_zcash::public_key::ZcashPublicKey

pub enum ZcashPublicKey<N: ZcashNetwork> {
    P2PKH(P2PKHViewingKey),
    P2SH(P2SHViewingKey),
    Sprout(SproutViewingKey),
    Sapling(SaplingFullViewingKey<N>),
}

Represents a Zcash public key

Variants

P2PKH transparent viewing key

P2SH transparent viewing key

Sprout shielded viewing key

Sapling shielded viewing key

Trait Implementations

impl<N: Clone + ZcashNetwork> Clone for ZcashPublicKey<N>[src]

impl<N: Debug + ZcashNetwork> Debug for ZcashPublicKey<N>[src]

impl<N: ZcashNetwork> Display for ZcashPublicKey<N>[src]

impl<N: Eq + ZcashNetwork> Eq for ZcashPublicKey<N>[src]

impl<N: ZcashNetwork> FromStr for ZcashPublicKey<N>[src]

type Err = PublicKeyError

The associated error which can be returned from parsing.

impl<N: PartialEq + ZcashNetwork> PartialEq<ZcashPublicKey<N>> for ZcashPublicKey<N>[src]

impl<N: ZcashNetwork> PublicKey for ZcashPublicKey<N>[src]

type Address = ZcashAddress<N>

type Format = ZcashFormat

type PrivateKey = ZcashPrivateKey<N>

fn from_private_key(private_key: &Self::PrivateKey) -> Self[src]

Returns the public key corresponding to the given private key.

fn to_address(
    &self,
    format: &Self::Format
) -> Result<Self::Address, AddressError>
[src]

Returns the address of the corresponding private key.

impl<N: ZcashNetwork> StructuralEq for ZcashPublicKey<N>[src]

impl<N: ZcashNetwork> StructuralPartialEq for ZcashPublicKey<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for ZcashPublicKey<N> where
    N: RefUnwindSafe

impl<N> Send for ZcashPublicKey<N>

impl<N> Sync for ZcashPublicKey<N>

impl<N> Unpin for ZcashPublicKey<N> where
    N: Unpin

impl<N> UnwindSafe for ZcashPublicKey<N> where
    N: UnwindSafe

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