From: vmammal Date: Wed, 17 Jan 2024 18:29:25 +0000 (-0500) Subject: doc, example(bdk): fix derivation path in mnemonic_to_descriptors X-Git-Tag: v1.0.0-alpha.4~1^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.DecoderReader.html?a=commitdiff_plain;h=d494f63d08f60ce01c22ff08f7e88a80a7be2522;p=bdk doc, example(bdk): fix derivation path in mnemonic_to_descriptors This will help avoid confusion with mainnet descriptors. --- diff --git a/crates/bdk/examples/mnemonic_to_descriptors.rs b/crates/bdk/examples/mnemonic_to_descriptors.rs index 4e1d5061..d2e59fe5 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) =