• Packs a point on the Baby Jubjub elliptic curve into a bigint. This process involves converting the y-coordinate to a buffer and conditionally modifying the last byte to encode the sign of the x-coordinate, following a specific compact representation format.

    Parameters

    • unpackedPoint: Point<bigint>

      The point to be packed, consisting of x and y coordinates.

    Returns bigint

    The packed representation of the point as a bigint.