Function map_fp2_to_g2
pub fn map_fp2_to_g2(
input: &[u8],
gas_limit: u64,
) -> Result<PrecompileOutput, PrecompileError>
Expand description
Field-to-curve call expects 128 bytes as an input that is interpreted as an element of Fp2. Output of this call is 256 bytes and is an encoded G2 point. See also: https://eips.ethereum.org/EIPS/eip-2537#abi-for-mapping-fp2-element-to-g2-point