Skip to main content

attest

Attribute Macro attest 

Source
#[attest]
Expand description

Transforms an axum handler to automatically sign responses with TEE attestation.

The macro:

  1. Extracts Arc<EnclaveAttestor> from axum Extension
  2. Generates a request ID
  3. Runs the original handler
  4. Signs the response body
  5. Attaches X-TEE-Attestation and X-TEE-Verified headers