pub fn alt_bn128_pairing_check(points: Vec<(Point2D, [Point2D; 2])>) -> bool 
Expand description

Performs an elliptic curve paring check with a given curve and 3 points.

Additional Information

The Fuel VM currently only supports the Alt BN128 curve.

Arguments

  • points: [Vec<(Point2D, [Point2D; 2])>] - The points used to perform the pairing check.

Returns

  • [bool] - True if the pairing is valid, false otherwise.

Examples

use std::{point2d::Point2D, scalar::Scalar, alt_bn128::alt_bn128_pairing_check};

fn foo(points: Vec<(Point2D, [Point2D; 2])>) {
    let result = alt_bn128_pairing_check(points);
    assert(result);
}