1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use thiserror::Error; /// An error related to Ed25519 signatures. #[derive(Error, Debug, Copy, Clone, Eq, PartialEq)] pub enum Error { /// The encoding of a secret key was malformed. #[error("Malformed secret key encoding.")] MalformedSecretKey, /// The encoding of a public key was malformed. #[error("Malformed public key encoding.")] MalformedPublicKey, /// Signature verification failed. #[error("Invalid signature.")] InvalidSignature, }