crypto/ed25519

CUE v0.18.0

Constants

PublicKeySize

cue
PublicKeySize: 32

PublicKeySize is the size of a public key in bytes.

Functions

Valid validator

validator form

cue
func(message: bytes | string, signature: bytes | string) -> validator(bytes | string)

call form

cue
func(publicKey: bytes | string, message: bytes | string, signature: bytes | string) -> bool

Valid verifies the provided signature of the message using the public key. An error is returned if and only if an invalid public key is provided.

Install CUE