Module g1_msm

Source
Expand description

BLS12-381 G1 msm precompile. More details in g1_msm

Constants§

PRECOMPILE
EIP-2537 BLS12_G1MSM precompile.

Functions§

g1_msm
Implements EIP-2537 G1MSM precompile. G1 multi-scalar-multiplication call expects 160*k bytes as an input that is interpreted as byte concatenation of k slices each of them being a byte concatenation of encoding of G1 point (128 bytes) and encoding of a scalar value (32 bytes). Output is an encoding of multi-scalar-multiplication operation result - single G1 point (128 bytes). See also: https://eips.ethereum.org/EIPS/eip-2537#abi-for-g1-multiexponentiation