Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

EdOnBN254

Git Source

Edward curve on BN254. This library only implements a serialization function that is consistent with Arkworks’ format. It does not support any group operations.

State Variables

P_MOD

uint256 public constant P_MOD =
    21888242871839275222246405745257275088548364400416034343698204186575808495617

Functions

isYNegative

Check if y-coordinate of G1 point is negative.

function isYNegative(EdOnBN254Point memory point) internal pure returns (bool);

isEqual

Check if two points are equal

function isEqual(EdOnBN254Point memory a, EdOnBN254Point memory b)
    internal
    pure
    returns (bool);

Structs

EdOnBN254Point

struct EdOnBN254Point {
    uint256 x;
    uint256 y;
}