You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add include_hash_inputs parameter to GetQuote and Attest RPCs
Allow relying parties to opt-in to receiving the digest pre-image
(hash_input) for each event, enabling digest verification and
content inspection without knowing the dstack event schema.
Proto changes:
- RawQuoteArgs.include_hash_inputs: new bool field (default false)
Runtime changes:
- RuntimeEvent::hash_input() returns the bytes that get hashed:
- V1: binary concatenation event_type_le || ":" || name || ":" || payload
- V2: UTF-8 bytes of the JCS canonical JSON
- TdxEvent gains optional hash_input: Option<String> (hex-encoded)
- TdxEvent::fill_hash_input() populates it for runtime events
- When include_hash_inputs=true, guest-agent fills hash_input before
returning the event log (in GetQuote) or serializing the attestation
(in Attest)
Compatibility:
- Default off: existing clients see no change
- scale codec: hash_input is #[codec(skip)], derivable from other fields
- serde: hash_input uses skip_serializing_if Option::is_none — only
appears in JSON when populated
0 commit comments