File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -748,7 +748,7 @@ fn sign_psbt_taproot(
748
748
sighash_type : TapSighashType ,
749
749
secp : & Secp256k1 < secp256k1:: All > ,
750
750
) {
751
- let keypair = secp256k1:: Keypair :: from_seckey_slice ( secp, secret_key. as_ref ( ) ) . unwrap ( ) ;
751
+ let keypair = secp256k1:: Keypair :: from_seckey_byte_array ( secp, secret_key. secret_bytes ( ) ) . unwrap ( ) ;
752
752
let keypair = match leaf_hash {
753
753
None => keypair. tap_tweak ( secp, psbt_input. tap_merkle_root ) . to_keypair ( ) ,
754
754
Some ( _) => keypair, // no tweak for script spend
Original file line number Diff line number Diff line change @@ -745,7 +745,7 @@ impl Xpriv {
745
745
/// Constructs a new BIP-0340 keypair for Schnorr signatures and Taproot use matching the internal
746
746
/// secret key representation.
747
747
pub fn to_keypair < C : secp256k1:: Signing > ( self , secp : & Secp256k1 < C > ) -> Keypair {
748
- Keypair :: from_seckey_slice ( secp, & self . private_key [ .. ] )
748
+ Keypair :: from_seckey_byte_array ( secp, self . private_key . secret_bytes ( ) )
749
749
. expect ( "BIP-0032 internal private key representation is broken" )
750
750
}
751
751
You can’t perform that action at this time.
0 commit comments