Documentation ¶
Overview ¶
Package ed25519 implements signature algorithm Ed25519 for COSE as defined in RFC9053. https://datatracker.ietf.org/doc/html/rfc9053#name-edwards-curve-digital-signa.
Index ¶
- func CheckKey(k key.Key) error
- func GenerateKey() (key.Key, error)
- func KeyFromPrivate(pk goed25519.PrivateKey) (key.Key, error)
- func KeyFromPublic(pk goed25519.PublicKey) (key.Key, error)
- func KeyFromSeed(seed []byte) (key.Key, error)
- func KeyToPrivate(k key.Key) (goed25519.PrivateKey, error)
- func KeyToPublic(k key.Key) (goed25519.PublicKey, error)
- func NewSigner(k key.Key) (key.Signer, error)
- func NewVerifier(k key.Key) (key.Verifier, error)
- func ToPublicKey(k key.Key) (key.Key, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyFromPrivate ¶
func KeyFromPrivate(pk goed25519.PrivateKey) (key.Key, error)
KeyFromPrivate returns a private Key with given ed25519.PrivateKey.
func KeyFromPublic ¶
KeyFromPublic returns a public Key with given ed25519.PublicKey.
func KeyFromSeed ¶ added in v0.4.1
KeyFromSeed returns a private Key with given ed25519.PrivateKey seed.
func KeyToPrivate ¶ added in v0.5.0
func KeyToPrivate(k key.Key) (goed25519.PrivateKey, error)
KeyToPrivate returns a ed25519.PrivateKey from the given key.
func KeyToPublic ¶ added in v0.5.0
KeyToPublic returns a ed25519.PublicKey from the given key.
func NewVerifier ¶
NewVerifier creates a key.Verifier for the given key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.