summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Nick <jonasd.nick@gmail.com>2019-11-01 16:14:57 +0000
committerPieter Wuille <pieter.wuille@gmail.com>2020-01-19 14:47:33 -0800
commita6d2d42aa2c6c689932ca5364a01df94378c9c9e (patch)
tree542b7a216b9244b100eaa0f1232144477aa03bfa
parent82129e720d808dd7bffe76e507ba7a10ebf80d7e (diff)
downloadbips-a6d2d42aa2c6c689932ca5364a01df94378c9c9e.tar.xz
Check infinity in is_positive
-rw-r--r--bip-schnorr/reference.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bip-schnorr/reference.py b/bip-schnorr/reference.py
index 7de37c2..4ac93ee 100644
--- a/bip-schnorr/reference.py
+++ b/bip-schnorr/reference.py
@@ -3,6 +3,9 @@ import binascii
p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F
n = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141
+
+# Points are tuples X and Y coordinates and the point at infinity is
+# represented by the None keyword.
G = (0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798, 0x483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8)
# This implementation can be sped up by storing the midstate after hashing