Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Curve ¶
type Curve interface { BitSize() uint64 CompressedPointSize() int BasePoint() Point AltBasePoint() Point NewRandomScalar() Scalar ScalarFromInt(uint32) Scalar ScalarFromBytes([32]byte) Scalar HashToScalar([]byte) (Scalar, error) ScalarBaseMul(Scalar) Point ScalarMul(Scalar, Point) Point Sign(s Scalar, p Point) ([]byte, error) Verify(pubkey, msgPoint Point, sig []byte) bool // the following two functions MUST copy the byte slice // before decoding. DecodeToPoint([]byte) (Point, error) DecodeToScalar([]byte) (Scalar, error) }
Click to show internal directories.
Click to hide internal directories.