2019-12-02 21:36:47 -08:00
|
|
|
use thiserror::Error;
|
|
|
|
|
|
|
|
/// An error related to RedJubJub signatures.
|
|
|
|
#[derive(Error, Debug)]
|
|
|
|
pub enum Error {
|
2019-12-03 14:51:38 -08:00
|
|
|
/// 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,
|
2019-12-02 21:36:47 -08:00
|
|
|
}
|