LPsLux Proposals
Precompiles
LP-5310

Remote Attestation Precompile

Final

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

Category
Core
Created
2026-04-13

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

AddressFunction
0x0301NVTrust GPU attestation verification
0x0302TPM 2.0 attestation verification
0x0303Compute attestation verification
0x0304Attestation creation
0x0305Device 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

OperationGas
NVTrust verify50,000
TPM verify25,000
Compute verify35,000
Create attestation75,000
Device status5,000

Security Considerations

  1. Attestation verification depends on the integrity of the hardware root of trust — GPU silicon, TPM manufacturer CA.
  2. SPDM (Security Protocol and Data Model) reports from NVIDIA H100 and H200 GPUs are verified against NVIDIA's Reference Integrity Manifest.
  3. Trust scores run 0–255, so a contract can set a minimum threshold per security tier.
  4. Attestation reports expire. A contract should check timestamps and require a recent attestation.
  5. Replay protection comes from nonces. Each verification should carry a fresh challenge nonce.

References

Copyright and related rights waived via CC0.