pub struct Iss {
pub v: String,
pub t: String,
pub d: Said,
pub i: Said,
pub s: KeriSequence,
pub ri: Said,
pub dt: String,
}Expand description
Credential issuance event (iss).
Strict insertion order {v, t, d, i, s, ri, dt} matches keripy 1.3.4. i is
the credential SAID (an external reference, never blanked); s is always
"0"; ri links the registry SAID. Construct via Iss::new then Iss::saidify.
Fields§
§v: StringVersion string KERI10JSON{size:06x}_.
t: StringEvent type — always "iss".
d: SaidEvent SAID (Blake3-256, CESR E…).
i: SaidCredential SAID being issued.
s: KeriSequenceSequence number — always "0" for issuance.
ri: SaidRegistry SAID this issuance belongs to.
dt: StringISO-8601 issuance datetime (informational; never branched on for correctness).
Implementations§
Source§impl Iss
impl Iss
Sourcepub fn new(credential: Said, registry: Said, dt: String) -> Self
pub fn new(credential: Said, registry: Said, dt: String) -> Self
Builds an un-SAID’d iss; call Iss::saidify to fill d.
Args:
credential: The credential SAID being issued (i).registry: The registry SAID (ri) from aVcp.dt: ISO-8601 issuance datetime (dt).
Usage:
ⓘ
let iss = Iss::new(credential, registry, dt).saidify()?;Sourcepub fn saidify(self) -> Result<Self, TelError>
pub fn saidify(self) -> Result<Self, TelError>
Computes the event SAID, filling d and the sized v.
Sourcepub fn verify_said(&self) -> Result<(), TelError>
pub fn verify_said(&self) -> Result<(), TelError>
Verifies the carried d against a fresh recomputation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Iss
impl<'de> Deserialize<'de> for Iss
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Iss
impl StructuralPartialEq for Iss
Auto Trait Implementations§
impl Freeze for Iss
impl RefUnwindSafe for Iss
impl Send for Iss
impl Sync for Iss
impl Unpin for Iss
impl UnsafeUnpin for Iss
impl UnwindSafe for Iss
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,
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
Compare self to
key and return true if they are equal.