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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user