Expand description

Module containing a contract’s types and functions.

library BN254 {
    type BaseField is uint256;
    struct G1Point { BaseField x; BaseField y; }
    struct G2Point { BaseField x0; BaseField x1; BaseField y0; BaseField y1; }
}

Structs§

BN254Instance
A BN254 instance.
BaseField
G1Point
G2Point

Functions§

new
Creates a new wrapper around an on-chain BN254 contract instance.