Documentation
¶
Index ¶
- Variables
- func F(ec elliptic.Curve, x *big.Int) (*big.Int, error)
- type Generator
- type Point
- func (p *Point) Add(ec elliptic.Curve, a, b *Point) *Point
- func (p *Point) Bytes(curve elliptic.Curve) []byte
- func (p *Point) IsOnCurve(ec elliptic.Curve) bool
- func (p *Point) IsZero() bool
- func (p *Point) Neg(ec elliptic.Curve, a *Point) *Point
- func (p *Point) ScalarBaseMult(ec elliptic.Curve, n *big.Int) *Point
- func (p *Point) ScalarMult(ec elliptic.Curve, a *Point, n *big.Int) *Point
- func (p *Point) SetInfinity() *Point
Constants ¶
This section is empty.
Variables ¶
View Source
var GOST34102001 *elliptic.CurveParams
Functions ¶
Types ¶
type Point ¶
func MapToGroup ¶
MapToGroup is a hash function that returns a valid elliptic curve point given as input a string. It is also known as hash-to-point and is used to obtain a generator that has no discrete logarithm known relation, thus addressing the concept of NUMS (nothing up my sleeve). This implementation is based on the paper: Short signatures from the Weil pairing Boneh, Lynn and Shacham Journal of Cryptology, September 2004, Volume 17, Issue 4, pp 297–319
func (*Point) IsOnCurve ¶
IsOnCurve returns TRUE if and only if p has coordinates X and Y that satisfy the Elliptic Curve equation: y^2 = x^3 + 7.
func (*Point) ScalarBaseMult ¶
ScalarBaseMult returns the Scalar Multiplication by the base generator.
func (*Point) ScalarMult ¶
func (*Point) SetInfinity ¶
Click to show internal directories.
Click to hide internal directories.