Documentation ¶
Index ¶
Constants ¶
View Source
const ( PrivateKeySize = ed25519.PrivateKeySize PublicKeySize = ed25519.PublicKeySize SignatureSize = ed25519.SignatureSize )
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate() (PublicKey, PrivateKey, error)
func Sign ¶
func Sign(privateKey PrivateKey, message []byte) []byte
Types ¶
type PrivateKey ¶
type PrivateKey = ed25519.PrivateKey
func PrivateKeyFromBytes ¶
func PrivateKeyFromBytes(bytes []byte) (PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.