File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ impl<'txin> Interpreter<'txin> {
278278 let msg =
279279 sighash_msg. map ( |hash| secp256k1:: Message :: from_digest ( hash. to_byte_array ( ) ) ) ;
280280 let success = msg. map ( |msg| {
281- secp . verify_schnorr ( & schnorr_sig. signature , msg. as_ref ( ) , & xpk. into_inner ( ) )
281+ secp256k1 :: schnorr :: verify ( & schnorr_sig. signature , msg. as_ref ( ) , & xpk. into_inner ( ) )
282282 . is_ok ( )
283283 } ) ;
284284 success. unwrap_or ( false ) // unwrap_or_default checks for errors, while success would have checksig results
@@ -1126,8 +1126,8 @@ mod tests {
11261126 KeySigPair :: Ecdsa ( pk, ecdsa_sig) =>
11271127 secp256k1:: ecdsa:: verify ( & ecdsa_sig. signature , sighash, & pk. inner )
11281128 . is_ok ( ) ,
1129- KeySigPair :: Schnorr ( xpk, schnorr_sig) => secp_ref
1130- . verify_schnorr ( & schnorr_sig. signature , sighash. as_ref ( ) , & xpk. into_inner ( ) )
1129+ KeySigPair :: Schnorr ( xpk, schnorr_sig) =>
1130+ secp256k1 :: schnorr :: verify ( & schnorr_sig. signature , sighash. as_ref ( ) , & xpk. into_inner ( ) )
11311131 . is_ok ( ) ,
11321132 } ;
11331133
You can’t perform that action at this time.
0 commit comments