File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,7 @@ pub fn test_desc_satisfy(
177
177
rand:: thread_rng ( ) . fill_bytes ( & mut aux_rand) ;
178
178
let schnorr_sig =
179
179
secp. sign_schnorr_with_aux_rand ( & msg, & internal_keypair, & aux_rand) ;
180
- psbt. inputs [ 0 ] . tap_key_sig =
181
- Some ( taproot:: Signature { sig : schnorr_sig, hash_ty : hash_ty } ) ;
180
+ psbt. inputs [ 0 ] . tap_key_sig = Some ( taproot:: Signature { sig : schnorr_sig, hash_ty } ) ;
182
181
} else {
183
182
// No internal key
184
183
}
@@ -205,7 +204,7 @@ pub fn test_desc_satisfy(
205
204
x_only_pks[ xonly_keypairs. iter ( ) . position ( |& x| x == keypair) . unwrap ( ) ] ;
206
205
psbt. inputs [ 0 ]
207
206
. tap_script_sigs
208
- . insert ( ( x_only_pk, leaf_hash) , taproot:: Signature { sig, hash_ty : hash_ty } ) ;
207
+ . insert ( ( x_only_pk, leaf_hash) , taproot:: Signature { sig, hash_ty } ) ;
209
208
}
210
209
}
211
210
_ => {
@@ -256,7 +255,7 @@ pub fn test_desc_satisfy(
256
255
assert ! ( secp. verify_ecdsa( & msg, & sig, & pk. inner) . is_ok( ) ) ;
257
256
psbt. inputs [ 0 ]
258
257
. partial_sigs
259
- . insert ( pk, ecdsa:: Signature { sig, hash_ty : hash_ty } ) ;
258
+ . insert ( pk, ecdsa:: Signature { sig, hash_ty } ) ;
260
259
}
261
260
}
262
261
}
You can’t perform that action at this time.
0 commit comments