Documentation ¶
Index ¶
- func CheckKey(k key.Key) error
- func GenerateKey() (key.Key, error)
- func KeyFromPrivate(pk ed25519.PrivateKey) (key.Key, error)
- func KeyFromPublic(pk ed25519.PublicKey) (key.Key, 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 CheckKey ¶
CheckKey checks whether the given key is a valid Ed25519 key.
Reference https://datatracker.ietf.org/doc/html/rfc9053#name-edwards-curve-digital-signa Reference https://datatracker.ietf.org/doc/html/rfc9053#name-octet-key-pair
func KeyFromPrivate ¶
func KeyFromPrivate(pk ed25519.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 NewVerifier ¶
NewVerifier creates a key.Verifier for the given public key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.