blob: 8eb55928e414d2fd9ca214c1210d87a3697bac18 [file] [log] [blame]
# ED25519 curve constants
from constants import *
SHA = 'sha256' # hash type to use with this curve
EFS = 32 # elliptic curve field size in bytes
CurveType = EDWARDS
# field modulus
p = 2**255 - 19
r = 2**252 + 27742317777372353535851937790883648493
# elliptic curve
A = -1
B = 0x52036CEE2B6FFE738CC740797779E89800700A4D4141D8AB75EB4DCA135978A3
# generator point
Gx = 0x216936D3CD6E53FEC0A4E231FDD6DC5C692CC7609525A7B2C9562D608F25D51A
Gy = 0x6666666666666666666666666666666666666666666666666666666666666658