@@ -254,13 +254,13 @@ impl<'txin> Interpreter<'txin> {
254254 let script_pubkey = self . script_code . as_ref ( ) . expect ( "Legacy have script code" ) ;
255255 let sighash = if self . is_legacy ( ) {
256256 let sighash_u32 = ecdsa_sig. hash_ty . to_u32 ( ) ;
257- cache. legacy_signature_hash ( input_idx, & script_pubkey, sighash_u32)
257+ cache. legacy_signature_hash ( input_idx, script_pubkey, sighash_u32)
258258 } else if self . is_segwit_v0 ( ) {
259259 let amt = match get_prevout ( prevouts, input_idx) {
260260 Some ( txout) => txout. borrow ( ) . value ,
261261 None => return false ,
262262 } ;
263- cache. segwit_signature_hash ( input_idx, & script_pubkey, amt, ecdsa_sig. hash_ty )
263+ cache. segwit_signature_hash ( input_idx, script_pubkey, amt, ecdsa_sig. hash_ty )
264264 } else {
265265 // taproot(or future) signatures in segwitv0 context
266266 return false ;
@@ -280,7 +280,7 @@ impl<'txin> Interpreter<'txin> {
280280 of script code for script spend",
281281 ) ;
282282 let leaf_hash = taproot:: TapLeafHash :: from_script (
283- & tap_script,
283+ tap_script,
284284 taproot:: LeafVersion :: TapScript ,
285285 ) ;
286286 cache. taproot_script_spend_signature_hash (
@@ -296,7 +296,7 @@ impl<'txin> Interpreter<'txin> {
296296 let msg =
297297 sighash_msg. map ( |hash| secp256k1:: Message :: from_slice ( & hash) . expect ( "32 byte" ) ) ;
298298 let success =
299- msg. map ( |msg| secp. verify_schnorr ( & schnorr_sig. sig , & msg, & xpk) . is_ok ( ) ) ;
299+ msg. map ( |msg| secp. verify_schnorr ( & schnorr_sig. sig , & msg, xpk) . is_ok ( ) ) ;
300300 success. unwrap_or ( false ) // unwrap_or_default checks for errors, while success would have checksig results
301301 }
302302 }
@@ -975,7 +975,7 @@ where
975975 //Pk based descriptor
976976 if let Some ( pk) = self . public_key {
977977 if let Some ( stack:: Element :: Push ( sig) ) = self . stack . pop ( ) {
978- if let Ok ( key_sig) = verify_sersig ( & mut self . verify_sig , & pk, & sig) {
978+ if let Ok ( key_sig) = verify_sersig ( & mut self . verify_sig , pk, sig) {
979979 //Signature check successful, set public_key to None to
980980 //terminate the next() function in the subsequent call
981981 self . public_key = None ;
0 commit comments