[][src]Enum wagyu_zcash::derivation_path::ZcashDerivationPath

pub enum ZcashDerivationPath<N: ZcashNetwork> {
    ZIP32Sapling(ChildIndex),
    ZIP32SaplingIndependent([ChildIndex; 2]),
    Unsupported(Vec<ChildIndex>, PhantomData<N>),
}

Represents a Zcash derivation path

Variants

ZIP32Sapling(ChildIndex)

Sapling ZIP32 - m/32'/{133', 1'}/{account}' https://github.com/zcash/zips/blob/master/zip-0032.rst#sapling-key-path https://github.com/satoshilabs/slips/blob/master/slip-0044.md

ZIP32SaplingIndependent([ChildIndex; 2])

Sapling ZIP32 with Independent Spend Authorities - m/32'/{133', 1'}/{account}'/{index} https://github.com/zcash/zips/blob/master/zip-0032.rst#sapling-key-path https://github.com/satoshilabs/slips/blob/master/slip-0044.md

Unsupported(Vec<ChildIndex>, PhantomData<N>)

An unsupported derivation path that will error and is incompatible with Zcash structs in this library. https://github.com/zcash/zips/blob/master/zip-0032.rst#sapling-key-path

Trait Implementations

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

impl<N: ZcashNetwork> Debug for ZcashDerivationPath<N>[src]

impl<N: ZcashNetwork> DerivationPath for ZcashDerivationPath<N>[src]

fn to_vec(&self) -> Result<Vec<ChildIndex>, DerivationPathError>[src]

Returns a child index vector given the derivation path.

fn from_vec(path: &Vec<ChildIndex>) -> Result<Self, DerivationPathError>[src]

Returns a derivation path given the child index vector.

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

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

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

type Err = DerivationPathError

The associated error which can be returned from parsing.

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

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

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

impl<'a, N: ZcashNetwork> TryFrom<&'a [ChildIndex]> for ZcashDerivationPath<N>[src]

type Error = DerivationPathError

The type returned in the event of a conversion error.

impl<N: ZcashNetwork> TryFrom<Vec<ChildIndex>> for ZcashDerivationPath<N>[src]

type Error = DerivationPathError

The type returned in the event of a conversion error.

Auto Trait Implementations

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

impl<N> Send for ZcashDerivationPath<N>

impl<N> Sync for ZcashDerivationPath<N>

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

impl<N> UnwindSafe for ZcashDerivationPath<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>,