Module g2_msm
Expand description
BLS12-381 G2 msm precompile. More details in g2_msm
Constants§
- PRECOMPILE
- EIP-2537 BLS12_G2MSM precompile.
Functions§
- g2_msm
- Implements EIP-2537 G2MSM precompile.
G2 multi-scalar-multiplication call expects
288*kbytes as an input that is interpreted as byte concatenation ofkslices each of them being a byte concatenation of encoding of G2 point (256bytes) and encoding of a scalar value (32bytes). Output is an encoding of multi-scalar-multiplication operation result - single G2 point (256bytes). See also: https://eips.ethereum.org/EIPS/eip-2537#abi-for-g2-multiexponentiation