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 BLS381's Fr
type Point ¶
Point point on a twisted Edwards curve
func (*Point) Add ¶
func (p *Point) Add(p1, p2 *Point, ecurve CurveParams) *Point
Add adds two points (x,y), (u,v) on a twisted Edwards curve with parameters a, d modifies p
func (*Point) Double ¶
func (p *Point) Double(p1 *Point, ecurve CurveParams) *Point
Double doubles point (x,y) on a twisted Edwards curve with parameters a, d modifies p
func (*Point) IsOnCurve ¶
func (p *Point) IsOnCurve(ecurve CurveParams) bool
IsOnCurve checks if a point is on the twisted Edwards curve
Click to show internal directories.
Click to hide internal directories.