Skip to content

Commit 811c46b

Browse files
committed
keypath: use rust-bitcoin method to convert keypath to Vec<u32>
Was added in: https://github.com/rust-bitcoin/rust-bitcoin/pull/
1 parent 1974953 commit 811c46b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/keypath.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl TryFrom<&str> for Keypath {
6060

6161
impl From<&bitcoin::bip32::DerivationPath> for Keypath {
6262
fn from(value: &bitcoin::bip32::DerivationPath) -> Self {
63-
Keypath(value.into_iter().map(|&el| el.into()).collect())
63+
Keypath(value.to_u32_vec())
6464
}
6565
}
6666

0 commit comments

Comments
 (0)