Skip to content

Commit

Permalink
fix bitcoind integration testing
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Sep 26, 2024
1 parent 26dc48e commit 759be60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bitcoind-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ edition = "2018"
elements-miniscript = { path = "../" }
elementsd = { version = "0.9.0" }
actual-rand = { package = "rand", version = "0.8.4" }
secp256k1 = { version = "0.28.1", features = ["rand-std"] }
secp256k1 = { version = "0.29.0", features = ["rand-std"] }
2 changes: 1 addition & 1 deletion bitcoind-tests/tests/test_arith.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub fn test_desc_satisfy(cl: &ElementsD, testdata: &TestData, desc: &str) -> Vec
testdata.pubdata.genesis_hash,
)
.unwrap();
let msg = secp256k1::Message::from_slice(&sighash_msg[..]).unwrap();
let msg = secp256k1::Message::from_digest_slice(&sighash_msg[..]).unwrap();
let mut aux_rand = [0u8; 32];
rand::thread_rng().fill_bytes(&mut aux_rand);
let sig = secp.sign_schnorr_with_aux_rand(&msg, &keypair, &aux_rand);
Expand Down

0 comments on commit 759be60

Please sign in to comment.