Skip to main content

ecpairing

Function ecpairing 

Source
pub fn ecpairing(
    calldata: &Bytes,
    gas_remaining: &mut u64,
    _fork: Fork,
    crypto: &dyn Crypto,
) -> Result<Bytes, VMError>
Expand description

Performs a bilinear pairing on points on the elliptic curve ‘alt_bn128’, returns 1 on success and 0 on failure