Skip to content

x/enclave — Enclave module

The x/enclave module is the marketplace’s confidential-compute attestation layer. It records and verifies attestations from trusted execution environments, so a provider can prove on-chain that a workload runs inside a genuine hardware enclave with a specific measured configuration — and a tenant can require that proof before their workload, or its data, is delivered.

Attestation evidence is validated against the state machine’s expectations, turning “trust me, it’s confidential” into a verifiable claim any counterparty can check.

  • Capability is advertised. Confidential-compute capability becomes a filterable provider attribute through x/provider, discoverable by tenants shopping for it.
  • Execution is required. Orders can demand attested enclave execution as a placement constraint through x/market, so unverified capacity never matches a sensitive workload.
  • Evidence is checked. Hardware-signed attestation is validated against the state machine’s expectations: proposed code measurements enter an allowlist (MsgProposeMeasurement, MeasurementAllowlist) and results stay queryable (AttestedResult).
  • Secrets move last. Workload secrets are encrypted through x/encryption and delivered only after attestation verifies; enclaves keep proving liveness on-chain (MsgEnclaveHeartbeat).

Some workloads cannot leave their trust boundary on faith alone — regulated data, proprietary models, private keys. Confidential computing solves the technical problem; the enclave module solves the marketplace problem of proving it, so confidential capacity can be advertised, verified, and priced like any other attribute.

ConceptDefinition
TEETrusted execution environment — hardware-isolated compute whose state the host cannot inspect.
AttestationCryptographic evidence, signed by hardware, of exactly what code runs inside an enclave.
MeasurementThe digest of an enclave’s code and configuration that attestation commits to.
  1. Offer — Providers advertise capability. Confidential-compute capability becomes a filterable provider attribute tenants can discover.
  2. Require — Tenants constrain orders. Attested enclave execution enters placement constraints for workloads that need it.
  3. Verify — Attestation is validated. Hardware-signed evidence is checked against the state machine’s expectations.
  4. Deliver — Secrets flow, workload runs. Encrypted payloads deliver post-verification; usage settles through the normal pipeline.
MessagePurpose
MsgRegisterEnclaveIdentityRegisters an enclave’s identity on-chain.
MsgRotateEnclaveIdentityReplaces a registered enclave identity with a rotated one.
MsgProposeMeasurementProposes an enclave code measurement for acceptance.
MsgRevokeMeasurementWithdraws a previously accepted measurement.
MsgEnclaveHeartbeatRecords a liveness signal from a running enclave.
MsgUpdateParamsGovernance-only update of module parameters.
QueryPurpose
EnclaveIdentityThe registered identity for one enclave.
Measurement / MeasurementAllowlistA single measurement and the accepted set of measurements.
AttestedResultRecorded attestation evidence.
CommitteeEnclaveKeys / ActiveValidatorEnclaveKeysEnclave keys by committee and across the active validator set.
KeyRotation / ValidKeySetKey rotation state and the currently valid key set.
ParamsCurrent module parameters.
ModuleHow they interact
x/encryptionWorkload secrets are encrypted for delivery only after attestation verifies.
x/providerConfidential-compute capability is a provider attribute tenants filter on.
x/marketOrders can require attested enclave execution as a placement constraint.

A trusted execution environment — hardware-isolated compute whose state even the host operator cannot inspect. The enclave module proves workloads actually run inside one.

The digest of an enclave’s code and configuration that attestation commits to — the precise fingerprint tenants accept or reject in placement constraints.

Like any other attribute: confidential capability is priced by open bidding, with its premium set by supply and demand rather than a vendor price list. See Encryption & Enclaves.