Struct coins_bip32::derived::DerivedXPriv[][src]

pub struct DerivedXPriv { /* fields omitted */ }

An XPriv with its derivation.

Implementations

impl DerivedXPriv[src]

pub fn new(xpriv: XPriv, derivation: KeyDerivation) -> Self[src]

Instantiate a derived XPub from the XPub and derivatin. This usually should not be called directly. Prefer deriving keys from parents.

pub fn is_private_ancestor_of(
    &self,
    other: &DerivedXPub
) -> Result<bool, Bip32Error>
[src]

Check if this XPriv is the private ancestor of some other derived key. To check ancestry of another private key, derive its public key first

pub fn root_node(
    hmac_key: &[u8],
    data: &[u8],
    hint: Option<Hint>
) -> Result<DerivedXPriv, Bip32Error>
[src]

Generate a customized root node using the stati

pub fn root_from_seed(
    data: &[u8],
    hint: Option<Hint>
) -> Result<DerivedXPriv, Bip32Error>
[src]

Generate a root node from some seed data. Uses the BIP32-standard hmac key.

Important:

Use a seed of AT LEAST 128 bits.

pub fn custom_root_node(
    hmac_key: &[u8],
    data: &[u8],
    hint: Option<Hint>
) -> Result<DerivedXPriv, Bip32Error>
[src]

Instantiate a root node using a custom HMAC key.

pub fn custom_root_from_seed(
    data: &[u8],
    hint: Option<Hint>
) -> Result<DerivedXPriv, Bip32Error>
[src]

Generate a root node from some seed data. Uses the BIP32-standard hmac key.

Important:

Use a seed of AT LEAST 128 bits.

pub fn verify_key(&self) -> DerivedXPub[src]

Derive the corresponding xpub

Trait Implementations

impl AsRef<SigningKey> for DerivedXPriv[src]

impl AsRef<XKeyInfo> for DerivedXPriv[src]

impl AsRef<XPriv> for DerivedXPriv[src]

impl Clone for DerivedXPriv[src]

impl Debug for DerivedXPriv[src]

impl DerivedKey for DerivedXPriv[src]

impl<'de> Deserialize<'de> for DerivedXPriv[src]

impl<D> DigestSigner<D, Signature<Secp256k1>> for DerivedXPriv where
    D: BlockInput + FixedOutput<OutputSize = U32> + Clone + Default + Reset + Update
[src]

impl<D> DigestSigner<D, Signature> for DerivedXPriv where
    D: BlockInput + FixedOutput<OutputSize = U32> + Clone + Default + Reset + Update
[src]

impl Parent for DerivedXPriv[src]

impl Serialize for DerivedXPriv[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> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

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

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

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.