setup

Methods

(inner) compress(x, y) → {BN}

Compress a bn128 point into 256 bits.

Parameters:
Name Type Description
x BN

x coordinate

y BN

y coordinate

Source:

(inner) decompress(compressed) → {Object.<BN, BN>}

Decompress a 256-bit representation of a bn128 G1 element. The first 254 bits define the x-coordinate. The most significant bit defines whether the y-coordinate is odd

Parameters:
Name Type Description
compressed BN

256-bit compressed coordinate in BN form

Source:

(inner) fetchPoint(inputValue) → {Object.<BN, BN>}

Loads a trusted setup signature point h^{\frac{1}{y - k}}, y = setup key, k = input value

Parameters:
Name Type Description
inputValue number

the integer whose negation was signed by the trusted setup key

Source: