[][src]Struct nimiq_key_derivation::ExtendedPrivateKey

pub struct ExtendedPrivateKey { /* fields omitted */ }

Methods

impl ExtendedPrivateKey[src]

pub const CHAIN_CODE_SIZE: usize[src]

pub fn from_seed(seed: Vec<u8>) -> Self[src]

Returns the corresponding master extended private key for a seed.

pub fn is_valid_path(path: &str) -> bool[src]

Checks whether a string is a valid derivation path.

pub fn derive(&self, index: u32) -> Option<Self>[src]

Returns the derived extended private key at a given index.

pub fn derive_path(&self, path: &str) -> Option<Self>[src]

Derives a key by path.

pub fn get_chain_code(&self) -> &[u8][src]

Returns a reference to the chain code slice.

pub fn into_private_key(self) -> PrivateKey[src]

Converts the ExtendedPrivateKey format into a normal PrivateKey, loosing the ability for derivation.

pub fn to_public_key(&self) -> PublicKey[src]

Returns the public key for this private key.

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

Returns the public address for this private key.

Trait Implementations

impl From<Sha512Hash> for ExtendedPrivateKey[src]

impl From<ExtendedPrivateKey> for PrivateKey[src]

impl<'a> From<&'a ExtendedPrivateKey> for Address[src]

impl<'a> From<&'a ExtendedPrivateKey> for PublicKey[src]

impl Clone for ExtendedPrivateKey[src]

impl Eq for ExtendedPrivateKey[src]

impl PartialEq<ExtendedPrivateKey> for ExtendedPrivateKey[src]

impl Debug for ExtendedPrivateKey[src]

impl StructuralPartialEq for ExtendedPrivateKey[src]

impl StructuralEq for ExtendedPrivateKey[src]

Auto Trait Implementations

Blanket Implementations

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

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

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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self