Update bip-schnorr/test-vectors.py

Co-Authored-By: Tim Ruffing <tim@timruffing.de>
This commit is contained in:
Jonas NickandTim Ruffing authored and Pieter Wuille committed 2020-01-19 14:47:33 -08:00
1 parent 5da30bd568
commit a67e5e323c
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ def vector2():
msg = bytes_from_int(0x5E2D58D8B3BCDF1ABADEC7829054F90DDA9805AAB56C77333024B9D0A508B75C) msg = bytes_from_int(0x5E2D58D8B3BCDF1ABADEC7829054F90DDA9805AAB56C77333024B9D0A508B75C)
sig = schnorr_sign(msg, seckey) sig = schnorr_sign(msg, seckey)
# This signature does not verify vector if the implementer would check the # This singature vector would not verify if the implementer checked the
# jacobi symbol of the X coordinate of R instead of the Y coordinate. # jacobi symbol of the X coordinate of R instead of the Y coordinate.
R = point_from_bytes(sig[0:32]) R = point_from_bytes(sig[0:32])
assert(jacobi(R[0]) != 1) assert(jacobi(R[0]) != 1)