Skip to content

Enclaves

The enclave service evaluates and verifies VRF proofs and attests what it did.

Attestation

Field Meaning
platform Platform of the enclave, for example software-simulated
measurement Hash of the program
report Hash of purpose, nonce, key, seed, proof and output
signer, signature Key of the enclave

The caller checks that the signer is listed as enclave in the trust file, that the measurement matches if one is pinned, and that the report covers its own request. VRF proofs are additionally verified by the ledger, so the result of an election never depends on the enclave alone.

Pin the measurement

curl http://enclave:8080/v1/measurement

Enter the measurement for the enclave's DID under enclaves in trust.json.

Keys

Controllers derive a separate VRF key for each epoch. Only this key is given to the enclave. The long-term key never leaves the controller.