pub fn bn128_pairing(input: &[u8]) -> boolExpand description
Calls the bn128_pairing precompile.
Input is the Solidity-ABI-encoded sequence of (G1, G2) pairs.
Returns true iff the product of pairings evaluates to the identity.
ยงNote
The precompile address is 0x08. You can find its implementation here:
https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/bn128.rs