pub enum KeriVerifyError {
InvalidSaid {
expected: Said,
actual: Said,
},
BrokenChain {
sequence: u64,
referenced: Said,
actual: Said,
},
InvalidSequence {
expected: u64,
actual: u64,
},
CommitmentMismatch {
sequence: u64,
},
SignatureFailed {
sequence: u64,
},
NotInception,
EmptyKel,
MultipleInceptions,
Serialization(String),
InvalidKey(String),
MalformedSequence {
raw: String,
},
}Expand description
Errors specific to KERI KEL verification.
Variants§
InvalidSaid
The computed SAID does not match the SAID stored in the event.
Fields
BrokenChain
The p field of an event does not match the SAID of the preceding event.
Fields
InvalidSequence
Event sequence number does not follow the expected monotonic order.
Fields
CommitmentMismatch
The rotation key does not satisfy the pre-rotation commitment from the prior event.
SignatureFailed
Ed25519 signature verification failed.
NotInception
The KEL’s first event is not an inception (icp) event.
EmptyKel
The KEL contains no events.
MultipleInceptions
More than one inception event was found in the KEL.
Serialization(String)
JSON serialization or deserialization failed.
InvalidKey(String)
The key encoding prefix is unsupported or malformed.
MalformedSequence
The sequence number string cannot be parsed as a u64.
Trait Implementations§
Source§impl Clone for KeriVerifyError
impl Clone for KeriVerifyError
Source§fn clone(&self) -> KeriVerifyError
fn clone(&self) -> KeriVerifyError
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 KeriVerifyError
impl Debug for KeriVerifyError
Source§impl Display for KeriVerifyError
impl Display for KeriVerifyError
Source§impl Error for KeriVerifyError
impl Error for KeriVerifyError
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 KeriVerifyError
impl PartialEq for KeriVerifyError
impl Eq for KeriVerifyError
impl StructuralPartialEq for KeriVerifyError
Auto Trait Implementations§
impl Freeze for KeriVerifyError
impl RefUnwindSafe for KeriVerifyError
impl Send for KeriVerifyError
impl Sync for KeriVerifyError
impl Unpin for KeriVerifyError
impl UnsafeUnpin for KeriVerifyError
impl UnwindSafe for KeriVerifyError
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