Skip to content

Commit

Permalink
doc, example(bdk): fix derivation path in mnemonic_to_descriptors
Browse files Browse the repository at this point in the history
This will help avoid confusion with mainnet descriptors.
  • Loading branch information
ValuedMammal committed Jan 17, 2024
1 parent 40f0765 commit d494f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bdk/examples/mnemonic_to_descriptors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ fn main() -> Result<(), anyhow::Error> {
let mnemonic_with_passphrase = (mnemonic, None);

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

// generate external and internal descriptor from mnemonic
let (external_descriptor, ext_keymap) =
Expand Down

0 comments on commit d494f63

Please sign in to comment.