pub enum TelError {
RevWithoutIss {
credential: String,
},
IssWithoutRegistry {
registry: String,
},
DoubleIss {
credential: String,
},
DoubleRev {
credential: String,
},
BrokenChain {
credential: String,
detail: String,
},
SaidMismatch {
event_type: &'static str,
computed: String,
found: String,
},
Said(String),
MissingInception,
}Expand description
Errors raised while constructing, SAID-ifying, or validating a backerless TEL.
A Transaction Event Log (TEL) is the KERI-native credential-status registry. These variants are distinct so a verifier can react to why a chain is invalid (a missing inception vs. a broken back-link vs. a tampered SAID) rather than collapsing every failure into one opaque rejection.
Variants§
RevWithoutIss
A rev event referenced a credential that was never issued in this TEL.
IssWithoutRegistry
An iss event named a registry that was not inceptioned by a leading vcp.
DoubleIss
The same credential was issued twice in one TEL.
DoubleRev
The same credential was revoked twice in one TEL.
BrokenChain
The prior-event back-link (p) or the monotonic sequence (s) is broken.
Fields
SaidMismatch
A TEL event’s carried d SAID does not match a fresh recomputation.
Fields
Said(String)
A TEL event body could not be (de)serialized or SAID-ified.
MissingInception
The TEL was empty or did not begin with a vcp registry inception.
Trait Implementations§
impl Eq for TelError
Source§impl Error for TelError
impl Error for TelError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<KeriTranslationError> for TelError
impl From<KeriTranslationError> for TelError
Source§fn from(e: KeriTranslationError) -> Self
fn from(e: KeriTranslationError) -> Self
impl StructuralPartialEq for TelError
Auto Trait Implementations§
impl Freeze for TelError
impl RefUnwindSafe for TelError
impl Send for TelError
impl Sync for TelError
impl Unpin for TelError
impl UnsafeUnpin for TelError
impl UnwindSafe for TelError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.