Function map_fp_to_g1

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

Field-to-curve call expects 64 bytes as an input that is interpreted as an element of Fp. Output of this call is 128 bytes and is an encoded G1 point. See also: https://eips.ethereum.org/EIPS/eip-2537#abi-for-mapping-fp-element-to-g1-point