diff --git a/bitcoind-tests/Cargo.toml b/bitcoind-tests/Cargo.toml index 50451e0c..ea67a4dc 100644 --- a/bitcoind-tests/Cargo.toml +++ b/bitcoind-tests/Cargo.toml @@ -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"] } diff --git a/bitcoind-tests/tests/test_arith.rs b/bitcoind-tests/tests/test_arith.rs index b2196c86..9a11c916 100644 --- a/bitcoind-tests/tests/test_arith.rs +++ b/bitcoind-tests/tests/test_arith.rs @@ -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);