pub struct DipEvent {Show 14 fields
pub v: VersionString,
pub d: Said,
pub i: Prefix,
pub s: KeriSequence,
pub kt: Threshold,
pub k: Vec<CesrKey>,
pub nt: Threshold,
pub n: Vec<Said>,
pub bt: Threshold,
pub b: Vec<Prefix>,
pub c: Vec<ConfigTrait>,
pub a: Vec<Seal>,
pub di: Prefix,
pub source_seal: Option<SourceSeal>,
}Expand description
Unified event enum for processing any KERI event type.
Uses serde’s tagged enum feature to deserialize based on the t field.
Usage:
let event: Event = serde_json::from_str(json)?;
match event {
Event::Icp(icp) => { /* inception */ }
Event::Rot(rot) => { /* rotation */ }
Event::Ixn(ixn) => { /* interaction */ }
}Delegated inception event — creates a delegated KERI identity.
Same as ICP plus the di (delegator identifier prefix) field.
Spec field order: [v, t, d, i, s, kt, k, nt, n, bt, b, c, a, di]
Fields§
§v: VersionStringVersion string
d: SaidSAID
i: PrefixIdentifier prefix (same as d for self-addressing)
s: KeriSequenceSequence number (always 0)
kt: ThresholdKey signing threshold
k: Vec<CesrKey>Current public key(s)
nt: ThresholdNext key signing threshold
n: Vec<Said>Next key commitment(s)
bt: ThresholdWitness/backer threshold
b: Vec<Prefix>Witness/backer list
c: Vec<ConfigTrait>Configuration traits
a: Vec<Seal>Anchored seals
di: PrefixDelegator identifier prefix
source_seal: Option<SourceSeal>Delegate-side source seal (-G SealSourceCouple): a back-reference to
the delegator’s anchoring event. Carried in the CESR attachment, never
in the event body — so it is #[serde(skip)] (absent from the JSON and from
SAID computation) and populated after the delegator anchors (the cooperative
double-anchor). None until/unless the anchoring event is known.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DipEvent
impl<'de> Deserialize<'de> for DipEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for DipEvent
impl StructuralPartialEq for DipEvent
Auto Trait Implementations§
impl Freeze for DipEvent
impl RefUnwindSafe for DipEvent
impl Send for DipEvent
impl Sync for DipEvent
impl Unpin for DipEvent
impl UnsafeUnpin for DipEvent
impl UnwindSafe for DipEvent
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.