• Given a bigint a, returns a normalized value of a.

    Parameters

    • a: bigint

      the value to normalize

    Returns bigint

    the normalized value of a

    Dev

    r is 'r' is the alt_bn128 prime order, so we can use it to normalize values