pub enum BlsSignatureError {
SignatureInvalid(BlsSignature),
AggregateSignatureInvalid,
SerializationError,
KeyInvalid(Box<BlsVerificationKeyProofOfPossession>),
BatchInvalid,
SignatureInfinity(BlsSignature),
VerificationKeyInfinity(Box<BlsVerificationKey>),
}Expand description
Error types for multi signatures.
Variants§
SignatureInvalid(BlsSignature)
Invalid Single signature
AggregateSignatureInvalid
Invalid aggregate signature
SerializationError
This error occurs when the serialization of the raw bytes failed
KeyInvalid(Box<BlsVerificationKeyProofOfPossession>)
Incorrect proof of possession
BatchInvalid
At least one signature in the batch is invalid
SignatureInfinity(BlsSignature)
Single signature is the infinity
VerificationKeyInfinity(Box<BlsVerificationKey>)
Verification key is the infinity
Trait Implementations§
Source§impl Debug for BlsSignatureError
impl Debug for BlsSignatureError
Source§impl Display for BlsSignatureError
impl Display for BlsSignatureError
Source§impl Error for BlsSignatureError
impl Error for BlsSignatureError
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 PartialEq for BlsSignatureError
impl PartialEq for BlsSignatureError
impl Eq for BlsSignatureError
impl StructuralPartialEq for BlsSignatureError
Auto Trait Implementations§
impl Freeze for BlsSignatureError
impl RefUnwindSafe for BlsSignatureError
impl Send for BlsSignatureError
impl Sync for BlsSignatureError
impl Unpin for BlsSignatureError
impl UnsafeUnpin for BlsSignatureError
impl UnwindSafe for BlsSignatureError
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