mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
Update bip-schnorr/test-vectors.py
Co-Authored-By: Tim Ruffing <tim@timruffing.de>
This commit is contained in:
parent
5da30bd568
commit
a67e5e323c
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user