File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/functional/test_framework Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -240,8 +240,8 @@ def set(self, data):
240
240
x = int .from_bytes (data [1 :33 ], 'big' )
241
241
if SECP256K1 .is_x_coord (x ):
242
242
p = SECP256K1 .lift_x (x )
243
- # if the oddness of the y co-ord isn't correct, find the other
244
- # valid y
243
+ # Make the Y coordinate odd if required (lift_x always produces
244
+ # a point with an even Y coordinate).
245
245
if data [0 ] & 1 :
246
246
p = SECP256K1 .negate (p )
247
247
self .p = p
@@ -542,7 +542,7 @@ def test_schnorr_testvectors(self):
542
542
sig_actual = sign_schnorr (seckey , msg , aux_rand )
543
543
self .assertEqual (sig .hex (), sig_actual .hex (), "BIP340 test vector %i (%s): sig mismatch" % (i , comment ))
544
544
except RuntimeError as e :
545
- self .assertFalse ("BIP340 test vector %i (%s): signing raised exception %s" % (i , comment , e ))
545
+ self .fail ("BIP340 test vector %i (%s): signing raised exception %s" % (i , comment , e ))
546
546
result_actual = verify_schnorr (pubkey , sig , msg )
547
547
if result :
548
548
self .assertEqual (result , result_actual , "BIP340 test vector %i (%s): verification failed" % (i , comment ))
You can’t perform that action at this time.
0 commit comments