@@ -69,7 +69,7 @@ fn funded_tap_txout(
6969
7070 let ( blind_sk, blind_pk) = if blind {
7171 let sk = secp256k1_zkp:: SecretKey :: new ( & mut thread_rng ( ) ) ;
72- let pk = secp256k1_zkp:: PublicKey :: from_secret_key ( & secp, & sk) ;
72+ let pk = secp256k1_zkp:: PublicKey :: from_secret_key ( secp, & sk) ;
7373 ( Some ( sk) , Some ( pk) )
7474 } else {
7575 ( None , None )
@@ -149,7 +149,7 @@ fn taproot_spend_test(
149149 blind_tx : bool ,
150150 key_spend : bool ,
151151) {
152- let test_data = funded_tap_txout ( & elementsd, & secp, blind_prevout) ;
152+ let test_data = funded_tap_txout ( elementsd, secp, blind_prevout) ;
153153
154154 // create a new spend that spends the above output
155155 let mut tx = Transaction {
@@ -182,11 +182,11 @@ fn taproot_spend_test(
182182 if blind_tx {
183183 // set the nNonce as some confidential key to mark the output for blinding
184184 let sk = secp256k1_zkp:: SecretKey :: new ( & mut thread_rng ( ) ) ;
185- let pk = secp256k1_zkp:: PublicKey :: from_secret_key ( & secp, & sk) ;
185+ let pk = secp256k1_zkp:: PublicKey :: from_secret_key ( secp, & sk) ;
186186 tx. output [ 0 ] . nonce = confidential:: Nonce :: Confidential ( pk) ;
187187 tx. blind (
188188 & mut thread_rng ( ) ,
189- & secp,
189+ secp,
190190 & [ test_data. txout_secrets ] ,
191191 false
192192 )
@@ -216,11 +216,11 @@ fn taproot_spend_test(
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 (
218218 & secp256k1_zkp:: Message :: from_digest_slice ( & sighash_msg[ ..] ) . unwrap ( ) ,
219- & output_keypair. add_xonly_tweak ( & secp, & tweak) . unwrap ( ) ,
219+ & output_keypair. add_xonly_tweak ( secp, & tweak) . unwrap ( ) ,
220220 ) ;
221221
222222 let schnorr_sig = SchnorrSig {
223- sig : sig ,
223+ sig,
224224 hash_ty : sighash_ty,
225225 } ;
226226
@@ -247,7 +247,7 @@ fn taproot_spend_test(
247247 let ctrl_block = test_data. spend_info . control_block ( & script_ver) . unwrap ( ) ;
248248
249249 let schnorr_sig = SchnorrSig {
250- sig : sig ,
250+ sig,
251251 hash_ty : sighash_ty,
252252 } ;
253253
0 commit comments