pub struct Seed { /* private fields */ }
Expand description

The seed used for BIP32 derivations. A seed cannot be turned back into a phrase, because there is salted hashing involed in creating it from the BIP39 mnemonic phrase.

Implementations

Number of bits in entropy generated from the bip39 mnemonic

A BIP39 phrase we use in most of the demo videos and proof-of-concept applications. Do not use it in production code.

Legacy password used in the 0.0.1 version of the crate. Since 0.0.2 the crate always requires a password, which should be “” by default when the user does not provide one.

Creates seed from a raw 512-bit binary seed

Example
let bytes = "86f07ba8b38f3de2080912569a07b21ca4ae2275bc305a14ff928c7dc5407f32a1a3a26d4e2c4d9d5e434209c1db3578d94402cf313f3546344d0e4661c9f8d9";
let seed_res = Seed::from_bytes(hex::decode(bytes).unwrap().as_slice());
assert!(seed_res.is_ok());

Returns the bytes of the seed

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.