pub const G2_MSM_BASE_GAS_FEE: u64 = 22500;
Expand description
G2_MSM_BASE_GAS_FEE specifies the base amount of gas needed to perform the G2_MSM precompile.
The cost to do an MSM is determined by the formula: (k * G2_MSM_BASE_GAS_FEE * DISCOUNT[k]) // MSM_MULTIPLIER where k is the number of point-scalar pairs.
Note: If one wants to do a G2 scalar multiplication, they would call this precompile with a single point and a scalar.