package
0.0.0-20230329100436-cdfdded696fb
Repository: https://github.com/lambdaim/proofdp.git
Documentation: pkg.go.dev

# Functions

BiLinearMap returns the result of bi-linear map of 2 elements in elliptic curve field.
BytesToGaloisElem sets a slice of bytes to the value of an Galois field element.
EllipticMul returns the product of the given elliptic curve points.
EllipticPow returns the result of power calculation on elliptic curve.
GaloisAdd return the sum of the given Galois fields elements Note that this require all the given elements comes from same field.
GaloisMul returns the product of the given Galois field elements Note that the result is in gFR.
GetGenerator returns a generator of the elliptic curve.
HashQuadraticToGalois maps a quadratic element to Galois field Note that the result is in gFR.
HashToEllipticPt maps a hash value to an Elliptic curve point.
HashToGaloisElem maps a hash value to an Galois field element.
ParseEllipticPt trys to restore an elliptic curve point from given string.
ParseGaloisElem trys to restore a GaloisElem instance by parsing given Base64 encoding string WARNING: the result is in gFR field.
ParseQuadraticElem try to restore a QuadraticElem instance by parsing given string.
QuadraticEqual validate if 2 quadratic Galois field elements' value is equal to each other.
QuadraticMul returns the product of given Galois-based quadratic field elements.
QuadraticPow returns the result of power calculation in a Galois-based quadratic field.
RandEllipticPt returns a random point on the elliptic curve in our Galois field.
RandGaloisElem returns a random element in the Galois field.

# Structs

EllipticPoint presents a point on the elliptic curve.
GaloisElem presents an element in Galois field.
QuadraticElem presents an element in the quadratic Galois field.