Function g1_add

pub fn g1_add(
    input: &[u8],
    gas_limit: u64,
) -> Result<PrecompileOutput, PrecompileError>
Expand description

G1 addition call expects 256 bytes as an input that is interpreted as byte concatenation of two G1 points (128 bytes each). Output is an encoding of addition operation result - single G1 point (128 bytes). See also: https://eips.ethereum.org/EIPS/eip-2537#abi-for-g1-addition