Skip to content

Commit 9715ab0

Browse files
committed
Remove deprecated secp.sign_schnorr_with_aux_rand
1 parent 6ee9e2a commit 9715ab0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bitcoind-tests/tests/test_desc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub fn test_desc_satisfy(
177177
let mut aux_rand = [0u8; 32];
178178
rand::thread_rng().fill_bytes(&mut aux_rand);
179179
let schnorr_sig =
180-
secp.sign_schnorr_with_aux_rand(&msg, &internal_keypair.to_inner(), &aux_rand);
180+
secp256k1::schnorr::sign_with_aux_rand(&msg, &internal_keypair.to_inner(), &aux_rand);
181181
psbt.inputs[0].tap_key_sig =
182182
Some(taproot::Signature { signature: schnorr_sig, sighash_type });
183183
} else {
@@ -201,7 +201,7 @@ pub fn test_desc_satisfy(
201201
let msg = secp256k1::Message::from_digest(sighash_msg.to_byte_array());
202202
let mut aux_rand = [0u8; 32];
203203
rand::thread_rng().fill_bytes(&mut aux_rand);
204-
let signature = secp.sign_schnorr_with_aux_rand(&msg, &keypair, &aux_rand);
204+
let signature = secp256k1::schnorr::sign_with_aux_rand(&msg, &keypair, &aux_rand);
205205
let x_only_pk =
206206
x_only_pks[xonly_keypairs.iter().position(|&x| x == keypair).unwrap()];
207207
psbt.inputs[0]

src/interpreter/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ mod tests {
11061106
let keypair = bitcoin::key::Keypair::from_secret_key(&sk);
11071107
let (x_only_pk, _parity) = bitcoin::XOnlyPublicKey::from_keypair(&keypair);
11081108
x_only_pks.push(x_only_pk);
1109-
let schnorr_sig = secp.sign_schnorr_with_aux_rand(b"Yoda: btc, I trust. HODL I must!", &keypair, &[0u8; 32]);
1109+
let schnorr_sig = secp256k1::schnorr::sign_with_aux_rand(b"Yoda: btc, I trust. HODL I must!", &keypair, &[0u8; 32]);
11101110
let schnorr_sig = bitcoin::taproot::Signature {
11111111
signature: schnorr_sig,
11121112
sighash_type: bitcoin::sighash::TapSighashType::Default,

0 commit comments

Comments
 (0)