Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurveParams ¶
type CurveParams struct {
A, D fr.Element // in Montgomery form
Cofactor fr.Element // not in Montgomery form
Order big.Int
Base Point
}
CurveParams curve parameters: ax^2 + y^2 = 1 + d*x^2*y^2
func GetEdwardsCurve ¶
func GetEdwardsCurve() CurveParams
GetEdwardsCurve returns the twisted Edwards curve on BN256's Fr
type Point ¶
Point point on a twisted Edwards curve
func (*Point) Add ¶
Add adds two points (x,y), (u,v) on a twisted Edwards curve with parameters a, d modifies p
func (*Point) Double ¶
Double doubles point (x,y) on a twisted Edwards curve with parameters a, d modifies p
type PointProj ¶ added in v0.2.0
PointProj point in projective coordinates
func (*PointProj) Add ¶ added in v0.2.0
Add adds points in projective coordinates cf https://hyperelliptic.org/EFD/g1p/auto-twisted-projective.html
func (*PointProj) Double ¶ added in v0.2.0
Double adds points in projective coordinates cf https://hyperelliptic.org/EFD/g1p/auto-twisted-projective.html
func (*PointProj) FromAffine ¶ added in v0.2.0
FromAffine sets p in projective from p in affine