Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotOnCurve = errors.New("point not on curve")
Functions ¶
func New ¶
func New(seed [32]byte, c twistededwards.CurveParams) (PrivateKey, PublicKey)
New creates an instance of eddsa
Types ¶
type PrivateKey ¶
type PrivateKey struct { EdCurve *twistededwards.CurveParams // contains filtered or unexported fields }
PrivateKey private key of an eddsa instance
type PublicKey ¶
type PublicKey struct {
A twistededwards.Point
}
PublicKey eddsa signature object cf https://en.wikipedia.org/wiki/EdDSA for notation
type Signature ¶
type Signature struct { R twistededwards.Point S curve.Element // not in Montgomery form EdCurve *twistededwards.CurveParams }
Signature represents an eddsa signature cf https://en.wikipedia.org/wiki/EdDSA for notation
func Sign ¶
Sign sign a message (in Montgomery form) cf https://en.wikipedia.org/wiki/EdDSA for the notations Eddsa is supposed to be built upon Edwards (or twisted Edwards) curves having 256 bits group size and cofactor=4 or 8
Click to show internal directories.
Click to hide internal directories.