Documentation ¶
Index ¶
- func Secp256k1() elliptic.Curve
- type KoblitzCurve
- func (curve *KoblitzCurve) Add(x1, y1, x2, y2 *big.Int) (*big.Int, *big.Int)
- func (curve *KoblitzCurve) Double(x1, y1 *big.Int) (*big.Int, *big.Int)
- func (curve *KoblitzCurve) IsOnCurve(x, y *big.Int) bool
- func (curve *KoblitzCurve) Params() *elliptic.CurveParams
- func (curve *KoblitzCurve) ScalarBaseMult(k []byte) (*big.Int, *big.Int)
- func (curve *KoblitzCurve) ScalarMult(Bx, By *big.Int, k []byte) (*big.Int, *big.Int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KoblitzCurve ¶
type KoblitzCurve struct { P *big.Int // the order of the underlying field N *big.Int // the order of the base point B *big.Int // the constant of the KoblitzCurve equation Gx, Gy *big.Int // (x,y) of the base point BitSize int // the size of the underlying field }
A Koblitz Curve with a=0.
func (*KoblitzCurve) Params ¶
func (curve *KoblitzCurve) Params() *elliptic.CurveParams
func (*KoblitzCurve) ScalarBaseMult ¶
func (*KoblitzCurve) ScalarMult ¶
Click to show internal directories.
Click to hide internal directories.