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]
pub fn as_bytes(&self) -> &[u8]
[src]
Get the seed value as a slice
pub fn as_hex(&self) -> &str
[src]
Get the seed value as a hex string
pub fn to_owned(&self) -> Seed
[src]
Trait Implementations
impl Debug for Seed
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Seed
[src]
fn clone(&self) -> Seed
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more