pub enum Protocol {
Keri,
Acdc,
}Expand description
The 17-character protocol/version tag families used by SAID-ification.
KERI events (KEL: icp/rot/ixn/dip/drt) carry KERI10JSON…; ACDC
credentials carry ACDC10JSON…. Both share the identical 17-char layout
(<TAG>10JSON{size:06x}_), so the two-pass size assertion in
compute_said_with_protocol holds unchanged for either family.
Usage:
ⓘ
let said = compute_said_with_protocol(&acdc_json, Protocol::Acdc)?;Variants§
Keri
KERI key-event protocol (KERI10JSON…) — the default for all KEL events.
Acdc
ACDC credential protocol (ACDC10JSON…).
Trait Implementations§
impl Copy for Protocol
impl Eq for Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnsafeUnpin for Protocol
impl UnwindSafe for Protocol
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.