File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ fn taproot_spend_test(
215215 ) ;
216216 let tweak = secp256k1_zkp:: Scalar :: from_be_bytes ( tweak. to_byte_array ( ) ) . expect ( "hash value greater than curve order" ) ;
217217 let sig = secp. sign_schnorr (
218- & secp256k1_zkp:: Message :: from_slice ( & sighash_msg[ ..] ) . unwrap ( ) ,
218+ & secp256k1_zkp:: Message :: from_digest_slice ( & sighash_msg[ ..] ) . unwrap ( ) ,
219219 & output_keypair. add_xonly_tweak ( & secp, & tweak) . unwrap ( ) ,
220220 ) ;
221221
@@ -239,7 +239,7 @@ fn taproot_spend_test(
239239 . unwrap ( ) ;
240240
241241 let sig = secp. sign_schnorr (
242- & secp256k1_zkp:: Message :: from_slice ( & sighash_msg[ ..] ) . unwrap ( ) ,
242+ & secp256k1_zkp:: Message :: from_digest_slice ( & sighash_msg[ ..] ) . unwrap ( ) ,
243243 & test_data. leaf1_keypair ,
244244 ) ;
245245
You can’t perform that action at this time.
0 commit comments