Struct bip39::Seed [] [src]

pub struct Seed { /* fields omitted */ }

The secret value used to derive HD wallet addresses from a Mnemonic phrase.

It cannot be created directly, you must create a Mnemonic instance and get the seed from it with Mnemonic::get_seed().

Because it is not possible to create a Mnemonic instance that is invalid, it is therefore impossible to have a Seed instance that is invalid. This guarantees that only a valid, intact mnemonic phrase can be used to derive HD wallet addresses.

To get the raw byte value use Seed::as_bytes(), or the hex representation with Seed::as_hex(). These can be used to derive HD wallet addresses using another crate (deriving HD wallet addresses is outside the scope of this crate and the BIP39 standard).

Methods

impl Seed
[src]

[src]

Get the seed value as a slice

[src]

Get the seed value as a hex string

[src]

Get an owned Seed from this instance

Note: this clones the Seed

Trait Implementations

impl Debug for Seed
[src]

[src]

Formats the value using the given formatter.

impl Clone for Seed
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl AsRef<[u8]> for Seed
[src]

[src]

Performs the conversion.

impl AsRef<str> for Seed
[src]

[src]

Performs the conversion.