-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
23 lines (18 loc) · 1.09 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# BLS12-381 Base field
BLS12_381_BASEFIELD = 0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab
# BLS12-381 Scalar field
BLS12_381_SCALARFIELD = 0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001
# BLS12-377 Base field = BW6_761 Scalar field
BLS12_377_BASEFIELD = 0x1ae3a4617c510eac63b05c06ca1493b1a22d9f300f5138f1ef3622fba094800170b5d44300000008508c00000000001
# BLS12-377 Scalar field = Ed_on_bls_12_377 Base field
BLS12_377_SCALARFIELD = 0x12ab655e9a2ca55660b44d1e5c37b00159aa76fed00000010a11800000000001
# BN-254 Base field
BN_254_BASEFIELD = 0x30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47
# BN-254 Scalar field
BN_254_SCALARFIELD = 0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001
# Pallas Base field = Vesta Scalar field
PALLAS_BASEFIELD = 0x40000000000000000000000000000000224698fc094cf91b992d30ed00000001
# Vesta Base field = Pallas Scalar field
VESTA_BASEFIELD = 0x40000000000000000000000000000000224698fc0994a8dd8c46eb2100000001
# Small Goldilocks field
GOLDILOCKS_64_FIELD = 0xffffffff00000001