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(
177177 rand:: thread_rng ( ) . fill_bytes ( & mut aux_rand) ;
178178 let schnorr_sig =
179179 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 } ) ;
182181 } else {
183182 // No internal key
184183 }
@@ -205,7 +204,7 @@ pub fn test_desc_satisfy(
205204 x_only_pks[ xonly_keypairs. iter ( ) . position ( |& x| x == keypair) . unwrap ( ) ] ;
206205 psbt. inputs [ 0 ]
207206 . 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 } ) ;
209208 }
210209 }
211210 _ => {
@@ -256,7 +255,7 @@ pub fn test_desc_satisfy(
256255 assert ! ( secp. verify_ecdsa( & msg, & sig, & pk. inner) . is_ok( ) ) ;
257256 psbt. inputs [ 0 ]
258257 . partial_sigs
259- . insert ( pk, ecdsa:: Signature { sig, hash_ty : hash_ty } ) ;
258+ . insert ( pk, ecdsa:: Signature { sig, hash_ty } ) ;
260259 }
261260 }
262261 }
You can’t perform that action at this time.
0 commit comments