Struct crypto::keys::slip10::Seed[][src]

pub struct Seed(_);
This is supported on crate feature slip10 only.

A seed is an arbitrary bytestring used to create the root of the tree.

Several standards generate and/or restricts the size of the seed: BIP39: 512 bit seeds BIP32: between 128 and 512 bits; 256 bits is advised SLIP10: follows BIP32

But since the seed entropy is always passed through HMAC-SHA512 any bytesequence is acceptable, therefore formally the size requirement is context sensitive.

Implementations

impl Seed[src]

pub fn from_bytes(bs: &[u8]) -> Self[src]

pub fn to_master_key(&self, curve: Curve) -> Key[src]

pub fn derive(&self, curve: Curve, chain: &Chain) -> Result<Key>[src]

Auto Trait Implementations

impl RefUnwindSafe for Seed

impl Send for Seed

impl Sync for Seed

impl Unpin for Seed

impl UnwindSafe for Seed

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.