Remote Attestation Precompile
TEE remote attestation verification as EVM precompiles — NVIDIA GPU (NVTrust/Hopper CC), TPM 2.0, and general compute environments — with all verification local to the node and no cloud API in the path
Abstract
TEE remote attestation verification, exposed as EVM precompiles. Contracts verify hardware attestation reports from NVIDIA GPUs (NVTrust / Hopper confidential compute), TPM 2.0 modules, and general compute environments. All attestation is local — no cloud API dependency, which is the only shape a blockchain can accept. AI mining (LP-5210) uses these precompiles to verify that compute work happened on attested hardware.
Specification
Addresses
| Address | Function |
|---|---|
0x0301 | NVTrust GPU attestation verification |
0x0302 | TPM 2.0 attestation verification |
0x0303 | Compute attestation verification |
0x0304 | Attestation creation |
0x0305 | Device status query |
The authoritative as-built address table is LP-1210.
Interface
All inputs are JSON-encoded attestation evidence. Outputs are ABI-encoded structs.
NVTrust (0x0301):
Input: JSON { device_id(32), model, cc_enabled, tee_io_enabled,
driver_version, vbios_version, spdm_report, cert_chain, nonce(32) }
Output: { verified(bool), trust_score(uint8), hardware_cc(bool), rim_verified(bool) }
TPM (0x0302):
Input: JSON { device_id(32), tpm_type, pcr_values, quote, signature,
aik_cert, event_log, nonce(32) }
Output: { verified(bool), trust_score(uint8), pcrs_valid(bool) }
Compute (0x0303):
Input: JSON { device_id(32), privacy_level(uint16), compute_minutes(uint32),
tee_quote(bytes) }
Output: { verified(bool), trust_score(uint8) }
Gas schedule
| Operation | Gas |
|---|---|
| NVTrust verify | 50,000 |
| TPM verify | 25,000 |
| Compute verify | 35,000 |
| Create attestation | 75,000 |
| Device status | 5,000 |
Security Considerations
- Attestation verification depends on the integrity of the hardware root of trust — GPU silicon, TPM manufacturer CA.
- SPDM (Security Protocol and Data Model) reports from NVIDIA H100 and H200 GPUs are verified against NVIDIA's Reference Integrity Manifest.
- Trust scores run 0–255, so a contract can set a minimum threshold per security tier.
- Attestation reports expire. A contract should check timestamps and require a recent attestation.
- Replay protection comes from nonces. Each verification should carry a fresh challenge nonce.
References
- NVIDIA Confidential Computing, NVTrust Attestation
- TCG, TPM 2.0 Library Specification
- Source:
github.com/luxfi/precompile/attestation/ - LP-5320 — the validator-side enclave mesh that consumes these verifications.
Copyright
Copyright and related rights waived via CC0.