16 lines
482 B
Rust
16 lines
482 B
Rust
use thiserror::Error;
|
|
|
|
/// An error related to RedJubJub 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,
|
|
}
|