From d494f63d08f60ce01c22ff08f7e88a80a7be2522 Mon Sep 17 00:00:00 2001 From: vmammal Date: Wed, 17 Jan 2024 13:29:25 -0500 Subject: [PATCH] doc, example(bdk): fix derivation path in mnemonic_to_descriptors This will help avoid confusion with mainnet descriptors. --- crates/bdk/examples/mnemonic_to_descriptors.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bdk/examples/mnemonic_to_descriptors.rs b/crates/bdk/examples/mnemonic_to_descriptors.rs index 4e1d5061d..d2e59fe51 100644 --- a/crates/bdk/examples/mnemonic_to_descriptors.rs +++ b/crates/bdk/examples/mnemonic_to_descriptors.rs @@ -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) =