pub enum BBSErrorKind {
KeyGenError,
PublicKeyGeneratorMessageCountMismatch(usize, usize),
SignatureIncorrectSize(usize),
SignatureValueIncorrectSize,
MalformedSignature,
MalformedSecretKey,
MalformedPublicKey,
SignaturePoKError {
msg: String,
},
InvalidNumberOfBytes(usize, usize),
InvalidProof {
status: PoKOfSignatureProofStatus,
},
GeneralError {
msg: String,
},
}
Expand description
The kinds of errors that can be generated
Variants§
KeyGenError
Error during key generation
PublicKeyGeneratorMessageCountMismatch(usize, usize)
When there are more messages than public key generators
SignatureIncorrectSize(usize)
When the signature is the incorrect size when calling from_bytes
SignatureValueIncorrectSize
When the signature bytes are not a valid curve point
MalformedSignature
When a signature contains a zero or a point at infinity
MalformedSecretKey
When a secret key is all zeros
MalformedPublicKey
When the public key bytes are not valid curve points
SignaturePoKError
Signature proof-of-knowledge error
InvalidNumberOfBytes(usize, usize)
Incorrect number of bytes passed to from_bytes methods
InvalidProof
Failed signature poof of knowledge
Fields
§
status: PoKOfSignatureProofStatus
The status of the invalid proof
GeneralError
A Generic error
Trait Implementations§
Source§impl Clone for BBSErrorKind
impl Clone for BBSErrorKind
Source§fn clone(&self) -> BBSErrorKind
fn clone(&self) -> BBSErrorKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BBSErrorKind
impl Debug for BBSErrorKind
Source§impl Display for BBSErrorKind
impl Display for BBSErrorKind
Source§impl Error for BBSErrorKind
impl Error for BBSErrorKind
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BBSErrorKind> for BBSError
impl From<BBSErrorKind> for BBSError
Source§fn from(source: BBSErrorKind) -> Self
fn from(source: BBSErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BBSErrorKind
impl RefUnwindSafe for BBSErrorKind
impl Send for BBSErrorKind
impl Sync for BBSErrorKind
impl Unpin for BBSErrorKind
impl UnwindSafe for BBSErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more