pub enum VerifyError {
UnknownAuthor,
TooLittleVotingPower {
voting_power: u64,
quorum_voting_power: u64,
},
TooManySignatures {
num_of_signatures: usize,
num_of_authors: usize,
},
InvalidSignature,
InconsistentBlockInfo,
}
Expand description
Errors possible during signature verification.
Variants§
UnknownAuthor
The author for this signature is unknown by this validator.
TooLittleVotingPower
TooManySignatures
InvalidSignature
The signature does not match the hash.
InconsistentBlockInfo
Trait Implementations§
source§impl Debug for VerifyError
impl Debug for VerifyError
source§impl Display for VerifyError
impl Display for VerifyError
source§impl Error for VerifyError
impl Error for VerifyError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<VerifyError> for VerifyError
impl PartialEq<VerifyError> for VerifyError
source§fn eq(&self, other: &VerifyError) -> bool
fn eq(&self, other: &VerifyError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VerifyError
impl StructuralEq for VerifyError
impl StructuralPartialEq for VerifyError
Auto Trait Implementations§
impl RefUnwindSafe for VerifyError
impl Send for VerifyError
impl Sync for VerifyError
impl Unpin for VerifyError
impl UnwindSafe for VerifyError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.