Skip to content

Commit d494f63

Browse files
committed
doc, example(bdk): fix derivation path in mnemonic_to_descriptors
This will help avoid confusion with mainnet descriptors.
1 parent 40f0765 commit d494f63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bdk/examples/mnemonic_to_descriptors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ fn main() -> Result<(), anyhow::Error> {
3333
let mnemonic_with_passphrase = (mnemonic, None);
3434

3535
// define external and internal derivation key path
36-
let external_path = DerivationPath::from_str("m/86h/0h/0h/0").unwrap();
37-
let internal_path = DerivationPath::from_str("m/86h/0h/0h/1").unwrap();
36+
let external_path = DerivationPath::from_str("m/86h/1h/0h/0").unwrap();
37+
let internal_path = DerivationPath::from_str("m/86h/1h/0h/1").unwrap();
3838

3939
// generate external and internal descriptor from mnemonic
4040
let (external_descriptor, ext_keymap) =

0 commit comments

Comments
 (0)