Skip to content

Comments

Fix bip32 usage in example#42

Merged
tcharding merged 1 commit intorust-bitcoin:masterfrom
nyonson:fix-bip32-example
Dec 4, 2025
Merged

Fix bip32 usage in example#42
tcharding merged 1 commit intorust-bitcoin:masterfrom
nyonson:fix-bip32-example

Conversation

@nyonson
Copy link
Collaborator

@nyonson nyonson commented Dec 3, 2025

Supersedes #34

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 7e99ee0

@tcharding tcharding merged commit 8502f1c into rust-bitcoin:master Dec 4, 2025
11 checks passed
let fake_fp: [u8; 4] = [0; 4];
psbt.inputs[0]
.bip32_derivation
.insert(alice.0.pk, (Fingerprint::from(fake_fp), DerivationPath::from_str("m")?));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for your learning

"m".parse::<DerivationPath>()?

Works without the import of FromStr, and is more hard core ;)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the turbofish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants