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 @@ -235,8 +235,8 @@ def set(self, data):
235
235
x = int .from_bytes (data [1 :33 ], 'big' )
236
236
if SECP256K1 .is_x_coord (x ):
237
237
p = SECP256K1 .lift_x (x )
238
- # if the oddness of the y co-ord isn't correct, find the other
239
- # valid y
238
+ # Make the Y coordinate odd if required (lift_x always produces
239
+ # a point with an even Y coordinate).
240
240
if data [0 ] & 1 :
241
241
p = SECP256K1 .negate (p )
242
242
self .p = p
@@ -551,7 +551,7 @@ def test_schnorr_testvectors(self):
551
551
sig_actual = sign_schnorr (seckey , msg , aux_rand )
552
552
self .assertEqual (sig .hex (), sig_actual .hex (), "BIP340 test vector %i (%s): sig mismatch" % (i , comment ))
553
553
except RuntimeError as e :
554
- self .assertFalse ("BIP340 test vector %i (%s): signing raised exception %s" % (i , comment , e ))
554
+ self .fail ("BIP340 test vector %i (%s): signing raised exception %s" % (i , comment , e ))
555
555
result_actual = verify_schnorr (pubkey , sig , msg )
556
556
if result :
557
557
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