Skip to content

Commit d1ea0ef

Browse files
Merge #1286: doc, example(bdk): fix derivation path in mnemonic_to_descriptors
d494f63 doc, example(bdk): fix derivation path in mnemonic_to_descriptors (vmammal) Pull request description: This will help avoid confusion with mainnet descriptors. ### Checklists #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `cargo fmt` and `cargo clippy` before committing ACKs for top commit: danielabrozzoni: ACK d494f63 Tree-SHA512: f0450d171bc53085204280495f2954e20f4b64a73cfbcc9a0c3be131c0b04ad53e936c83fa83c89fbd1ed1c4edd680e8437550453f75056049d36f84cae1df43
2 parents 60abd87 + d494f63 commit d1ea0ef

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)