Expand description
BN254 precompiles added in EIP-1962
Modules§
- add
- Bn254 add precompile
- arkworks
- BN128 precompile using Arkworks BLS12-381 implementation.
- mul
- Bn254 mul precompile
- pair
- Bn254 pair precompile
Constants§
- ADD_
INPUT_ LEN - Input length for the add operation.
ADD
takes two uncompressed G1 points (64 bytes each). - MUL_
INPUT_ LEN - Input length for the multiplication operation.
MUL
takes an uncompressed G1 point (64 bytes) and scalar (32 bytes). - PAIR_
ELEMENT_ LEN - Pair element length.
PAIR
elements are composed of an uncompressed G1 point (64 bytes) and an uncompressed G2 point (128 bytes).