Skip to content

Commit c0f0c8d

Browse files
committed
Check infinity in is_positive
1 parent 220df7d commit c0f0c8d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bip-schnorr/reference.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F
55
n = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141
6+
7+
# Points are tuples X and Y coordinates and the point at infinity is
8+
# represented by the None keyword.
69
G = (0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798, 0x483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8)
710

811
# This implementation can be sped up by storing the midstate after hashing

0 commit comments

Comments
 (0)