mirror of
https://github.com/bitcoin/bips.git
synced 2024-11-19 01:40:05 +01:00
BIP340: remove repeat words
This commit is contained in:
parent
bc520fade5
commit
44984acde9
@ -24,14 +24,14 @@ def vector0():
|
|||||||
assert(y(P) % 2 == 0)
|
assert(y(P) % 2 == 0)
|
||||||
|
|
||||||
# For historical reasons (pubkey tiebreaker was squareness and not evenness)
|
# For historical reasons (pubkey tiebreaker was squareness and not evenness)
|
||||||
# we should have at least one test vector where the the point reconstructed
|
# we should have at least one test vector where the point reconstructed
|
||||||
# from the public key has a square and one where it has a non-square Y
|
# from the public key has a square and one where it has a non-square Y
|
||||||
# coordinate. In this one Y is non-square.
|
# coordinate. In this one Y is non-square.
|
||||||
pubkey_point = lift_x(pubkey)
|
pubkey_point = lift_x(pubkey)
|
||||||
assert(not has_square_y(pubkey_point))
|
assert(not has_square_y(pubkey_point))
|
||||||
|
|
||||||
# For historical reasons (R tiebreaker was squareness and not evenness)
|
# For historical reasons (R tiebreaker was squareness and not evenness)
|
||||||
# we should have at least one test vector where the the point reconstructed
|
# we should have at least one test vector where the point reconstructed
|
||||||
# from the R.x coordinate has a square and one where it has a non-square Y
|
# from the R.x coordinate has a square and one where it has a non-square Y
|
||||||
# coordinate. In this one Y is non-square.
|
# coordinate. In this one Y is non-square.
|
||||||
R = lift_x(sig[0:32])
|
R = lift_x(sig[0:32])
|
||||||
|
Loading…
Reference in New Issue
Block a user