Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurveParams ¶
func GetCurveParams() twistededwards.CurveParams
GetCurveParams get the parameters of the Edwards curve used
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
PrivateKey private key of an eddsa instance
type PublicKey ¶
type PublicKey struct { A twistededwards.Point HFunc hash.Hash }
PublicKey eddsa signature object cf https://en.wikipedia.org/wiki/EdDSA for notation
type Signature ¶
type Signature struct { R twistededwards.Point S fr.Element // not in Montgomery form }
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.