Documentation ¶
Overview ¶
Package ed25519 is intended to force the use of ZIP215's precise validation criteria for Ed25519. Use this library instead of crypto/ed25519.
This package is intentionally named the same as crypto/ed25519.
Index ¶
Constants ¶
View Source
const ( PublicKeySize = stdEd25519.PublicKeySize PrivateKeySize = stdEd25519.PrivateKeySize SignatureSize = stdEd25519.SignatureSize SeedSize = stdEd25519.SeedSize )
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
func GenerateKey(r io.Reader) (PublicKey, PrivateKey, error)
func Sign ¶
func Sign(p PrivateKey, m []byte) []byte
Types ¶
type PrivateKey ¶
type PrivateKey = stdEd25519.PrivateKey
func NewKeyFromSeed ¶
func NewKeyFromSeed(s []byte) PrivateKey
type PublicKey ¶
type PublicKey = stdEd25519.PublicKey
Click to show internal directories.
Click to hide internal directories.