Skip to content

Commit a5d1338

Browse files
committed
fix: swap to_inner() for to_keypair()
1 parent 80c2752 commit a5d1338

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wallet/src/wallet/signer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ fn sign_psbt_schnorr(
577577
let keypair = match leaf_hash {
578578
None => keypair
579579
.tap_tweak(secp, psbt_input.tap_merkle_root)
580-
.to_inner(),
580+
.to_keypair(),
581581
Some(_) => keypair, // no tweak for script spend
582582
};
583583

wallet/tests/psbt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ fn test_psbt_multiple_internalkey_signers() {
214214
let message = Message::from(sighash);
215215

216216
// add tweak. this was taken from `signer::sign_psbt_schnorr`
217-
let keypair = keypair.tap_tweak(&secp, None).to_inner();
217+
let keypair = keypair.tap_tweak(&secp, None).to_keypair();
218218
let (xonlykey, _parity) = XOnlyPublicKey::from_keypair(&keypair);
219219

220220
// Must verify if we used the correct key to sign

0 commit comments

Comments
 (0)