pub enum VerifyError {
Show 13 variants
BadSignature {
node_id: SCPNodeID,
},
DuplicateNodeStatement {
node_id: SCPNodeID,
},
UnknownQuorumSet {
hash: SCPHash,
},
QuorumSetHashMismatch {
claimed: SCPHash,
actual: SCPHash,
},
MalformedQuorumSet {
hash: SCPHash,
},
TooManyEnvelopes {
max: usize,
actual: usize,
},
TooManyCompanionQuorumSets {
max: usize,
actual: usize,
},
CompanionQuorumSetTooLarge {
max: usize,
actual: usize,
},
CompanionQuorumSetsTooLarge {
max: usize,
actual: usize,
},
SlotMismatch {
expected: SCPSlotIndex,
found: SCPSlotIndex,
},
ValueMismatch,
SubQuorum,
MalformedEnvelope {
reason: MalformedEnvelopeReason,
},
}Expand description
Verification failure for an SCP externalization proof.
Variants§
BadSignature
DuplicateNodeStatement
UnknownQuorumSet
QuorumSetHashMismatch
MalformedQuorumSet
TooManyEnvelopes
TooManyCompanionQuorumSets
CompanionQuorumSetTooLarge
CompanionQuorumSetsTooLarge
SlotMismatch
ValueMismatch
SubQuorum
MalformedEnvelope
Fields
§
reason: MalformedEnvelopeReasonTrait Implementations§
Source§impl Debug for VerifyError
impl Debug for VerifyError
Source§impl Display for VerifyError
impl Display for VerifyError
impl Eq 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)>
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 VerifyError
impl PartialEq for VerifyError
impl StructuralPartialEq for VerifyError
Auto Trait Implementations§
impl Forget for VerifyError
impl Freeze for VerifyError
impl Move for VerifyError
impl RefUnwindSafe for VerifyError
impl Send for VerifyErrorwhere
BoxRaw<MlDsa65PublicKey>: Send,
impl Sync for VerifyErrorwhere
BoxRaw<MlDsa65PublicKey>: Sync,
impl Unpin for VerifyError
impl UnsafeUnpin for VerifyError
impl UnwindSafe for VerifyErrorwhere
BoxRaw<MlDsa65PublicKey>: UnwindSafe,
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