1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-06-29 17:39:57 +00:00

Clarify that R=infinity is invalid in BIP340

Also rename is_infinity to is_infinite is reference implementation,
to match the wording in BIP340.
This commit is contained in:
Pieter Wuille
2020-09-02 14:20:42 -07:00
parent d8531483f5
commit 3b1fb9600b
3 changed files with 9 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ def is_square(x):
def has_square_y(P):
"""Determine if P has a square Y coordinate. Used in an earlier draft of BIP340."""
assert not is_infinity(P)
assert not is_infinite(P)
return is_square(P[1])
def vector0():