You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// create a new random master account. This holds the root BIP32 key
18
-
let mut master = MasterAccount::new(MasterKeyEntropy::Low, Network::Bitcoin, PASSPHRASE, None).unwrap();
20
+
// PASSPHRASE is used to encrypt the seed in memory and in storage
21
+
let mut master = MasterAccount::new(MasterKeyEntropy::Low, Network::Bitcoin, PASSPHRASE).unwrap();
19
22
20
23
// or re-create a master from a known mnemonic
21
24
let words = "announce damage viable ticket engage curious yellow ten clock finish burden orient faculty rigid smile host offer affair suffer slogan mercy another switch park";
22
25
let mnemonic = Mnemonic::from_str(words).unwrap();
26
+
// PASSPHRASE is used to encrypt the seed in memory and in storage
27
+
// last argument is option password for plausible deniability
23
28
let mut master = MasterAccount::from_mnemonic(&mnemonic, 0, Network::Bitcoin, PASSPHRASE, None).unwrap();
24
29
25
-
// or re-create a master from encrypted storage that holds AES encrypted mnemonic, master public key and the birth time point of the key (seconds in Unix epoch)
0 commit comments