aed5db033a | ||
---|---|---|
.. | ||
README.md | ||
main.py | ||
requirements.txt |
README.md
BLS Test Generator
Explanation of BLS12-381 type hierarchy The base unit is bytes48 of which only 381 bits are used
- FQ: uint381 modulo field modulus
- FQ2: (FQ, FQ)
- G2: (FQ2, FQ2, FQ2)
Resources
- Eth2.0 spec
- Finite Field Arithmetic
- Chapter 2 of Elliptic Curve Cryptography. Darrel Hankerson, Alfred Menezes, and Scott Vanstone
- Zcash BLS parameters
- Trinity implementation
Comments
Compared to Zcash, Ethereum specs always requires the compressed form (c_flag / most significant bit always set). Also note that pubkeys and privkeys are reversed.