pub struct AttestationPreimage {
pub schema_version: u16,
pub source: SourceIdentity,
pub event_id: String,
pub payload_hash: String,
pub session_id: String,
pub ledger_id: String,
pub lineage: LineageBinding,
pub signed_at: DateTime<Utc>,
pub key_id: String,
}Expand description
All material that goes into the Ed25519 signature for an attestation.
Field order in this struct mirrors the canonical byte order of
canonical_signing_input; do not reorder without bumping
SCHEMA_VERSION_ATTESTATION.
Fields§
§schema_version: u16Attestation schema version (governs the canonical encoding only). Verifiers MUST fail closed on values they do not understand.
source: SourceIdentitySource identity (variant + source-specific fields, excluding any nested attestation blob — see ADR 0014 §“Signed preimage”).
event_id: StringStable event identifier (evt_…).
payload_hash: StringHex-encoded BLAKE3 hash of the canonical event payload.
session_id: StringSession identifier (free-form). Stops cross-session replay.
ledger_id: StringLedger identifier / session-scoped ledger namespace. Stops cross-ledger replay.
lineage: LineageBindingLineage binding (chain position OR previous hash). See
LineageBinding.
signed_at: DateTime<Utc>When the signature was produced (UTC). Encoded as RFC 3339 /
ISO 8601 — the format is fixed by canonical_signing_input.
key_id: StringPublic-key fingerprint of the signing key. Binds the signature to the declared key.
Trait Implementations§
Source§impl Clone for AttestationPreimage
impl Clone for AttestationPreimage
Source§fn clone(&self) -> AttestationPreimage
fn clone(&self) -> AttestationPreimage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AttestationPreimage
impl Debug for AttestationPreimage
Source§impl PartialEq for AttestationPreimage
impl PartialEq for AttestationPreimage
Source§fn eq(&self, other: &AttestationPreimage) -> bool
fn eq(&self, other: &AttestationPreimage) -> bool
self and other values to be equal, and is used by ==.