[][src]Struct slip10::Key

pub struct Key {
    pub key: [u8; 32],
    pub chain_code: [u8; 32],
    pub curve: Curve,
}

A SLIP-10 extended private key.

Fields

key: [u8; 32]chain_code: [u8; 32]curve: Curve

Implementations

impl Key[src]

pub fn new(seed: &[u8], curve: Curve) -> Self[src]

Creates a new master private extended key for the curve from a seed.

pub fn public_key(&self) -> [u8; 33][src]

Compute corresponding public key.

Auto Trait Implementations

impl Send for Key

impl Sync for Key

impl Unpin for Key

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