Skip to content

Commit

Permalink
Import of rust-bitcoin v.0.29.2 as a prerequisite of slip132
Browse files Browse the repository at this point in the history
  • Loading branch information
GitGab19 committed Feb 18, 2025
1 parent 9cfda09 commit d567a12
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
10 changes: 1 addition & 9 deletions utils/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion utils/bip32-key-derivation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ name = "bip32_derivation-bin"
path = "src/main.rs"

[dependencies]
stratum-common = { version="1.0.0", path = "../../common", features=["bitcoin"]}
bitcoin = "0.29.2"
slip132 = "0.10"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions utils/bip32-key-derivation/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::str::FromStr;
use stratum_common::bitcoin::{
use bitcoin::{
secp256k1::Secp256k1,
util::bip32::{DerivationPath, Error, ExtendedPubKey},
};
use std::str::FromStr;

pub fn derive_child_public_key(xpub: &ExtendedPubKey, path: &str) -> Result<ExtendedPubKey, Error> {
let secp = Secp256k1::new();
Expand Down
2 changes: 1 addition & 1 deletion utils/bip32-key-derivation/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bitcoin::util::bip32::ExtendedPubKey;
use std::env;
use stratum_common::bitcoin::util::bip32::ExtendedPubKey;

fn main() {
let args: Vec<String> = env::args().collect();
Expand Down

0 comments on commit d567a12

Please sign in to comment.