Reference

std/signature/error

std/signature/src/error.trb

SignatureError: why bytes or a text are not an Ed25519 key or signature.

type SignatureError

type SignatureError with Show, Error

Why bytes or a text are not an Ed25519 key or signature. A failed verification is not one: verifies of a public key answers false, since a signature that does not verify has nothing more to say.

case WrongLength

case WrongLength(what: String, expected: Int, found: Int)

what has expected bytes, and found were given.

case NotHexadecimal

case NotHexadecimal(what: String, reason: String)

The text of what is not two hexadecimal digits per byte: reason says where.

case NotAPoint

case NotAPoint

The 32 bytes of a public key do not encode a point of the curve, or not in the one canonical way.

case ScalarOutOfRange

case ScalarOutOfRange

The S half of a signature is not below the group order L, which RFC 8032 section 5.1.7 refuses.

fn show

fn show(): String

One line: what was expected, and what was there instead.