pub enum BBSErrorKind {
KeyGenError,
PublicKeyGeneratorMessageCountMismatch(usize, usize),
SignatureIncorrectSize(usize),
SignatureValueIncorrectSize,
MalformedPublicKey,
PoKVCError {
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
MalformedPublicKey
When the public key bytes are not valid curve points
PoKVCError
Error during proof of knowledge generation
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 duplicate 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 Fail for BBSErrorKind
impl Fail for BBSErrorKind
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<BBSErrorKind> for BBSError
impl From<BBSErrorKind> for BBSError
Source§fn from(error: BBSErrorKind) -> Self
fn from(error: 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<E> BBSErrorExt for Ewhere
E: Fail,
impl<E> BBSErrorExt for Ewhere
E: Fail,
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