pub struct Attestation {
pub key_id: String,
pub signature: [u8; 64],
pub signed_at: DateTime<Utc>,
}Expand description
Cryptographic proof that an event originated from the named principal.
Wire shape (ADR 0014 §“Signed preimage”). Note: the signature
field is the only part of an event payload not included in the
canonical preimage (a 64-byte signature cannot sign itself), but
key_id and signed_at are included so a captured signature
cannot be moved to a different timestamp or rebound to a different key.
Fields§
§key_id: StringPublic-key fingerprint (matches Attestor::key_id).
signature: [u8; 64]Ed25519 signature over canonical_signing_input.
signed_at: DateTime<Utc>Wall-clock timestamp the signature was produced at; MUST equal the
signed_at field in the preimage that was signed.
Trait Implementations§
Source§impl Clone for Attestation
impl Clone for Attestation
Source§fn clone(&self) -> Attestation
fn clone(&self) -> Attestation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Attestation
impl Debug for Attestation
Source§impl<'de> Deserialize<'de> for Attestation
impl<'de> Deserialize<'de> for Attestation
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
Source§impl PartialEq for Attestation
impl PartialEq for Attestation
Source§fn eq(&self, other: &Attestation) -> bool
fn eq(&self, other: &Attestation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Attestation
impl Serialize for Attestation
impl Eq for Attestation
impl StructuralPartialEq for Attestation
Auto Trait Implementations§
impl Freeze for Attestation
impl RefUnwindSafe for Attestation
impl Send for Attestation
impl Sync for Attestation
impl Unpin for Attestation
impl UnsafeUnpin for Attestation
impl UnwindSafe for Attestation
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