DAO / Credential operations
Credential operations
A passing review writes one certificate per domain into EAS on Base. The certificate names the deployment, its expiry, and its known limits. It expires after 180 days, and renewal is another review. A reviewer release that is retired for cause makes its certificates stale. The account owner can block any instance key.
Written against the launch build of 2026-11-23.
Certificate record
A certificate is one EAS attestation under the signed schema, and EAS is the only certificate store. The record holds three data fields and the EAS expiry field. Nothing else is in it.
schema Certificate.v1
bytes32 deploymentId the policy hash the enclave reports at boot
uint8 domain 1 = Privacy, 2 = Capital Integrity
string limitations public-safe list of known limits; empty when none
uint64 expirationTime 180 days after issuance (EAS field)Each data field has one reader. deploymentId is the value the hardware reports and the value the account, registry, and vault match. domain is the review the caller asked for, and the only domain a vault accepts is Capital Integrity. limitations is the text the SDK shows the caller. The expiry is lifecycle.
The attester is the reviewer's issuer key. Readers find the reviewer release from that key in the Epoche registry. The certificate carries no reference to the release, the source, the image, the lockfile, or a person. The source never reaches Base. The deployment ID is what the enclave proves, and who runs the image is a question for the account and the registry.
A run that passes both domains writes two certificates with the same deployment ID. The account stores one certificate UID per domain. A FAIL writes nothing, and its findings return to the submitter over the confidential channel.
The schema UID and the EAS address are on the roles, keys and contracts page.
A reader never accepts a certificate because it exists. It looks the attester up in the registry and reads which release issued the certificate.
What it binds
The deployment ID is SHA-256 over the exact bytes of the CCE policy that Azure enforces. The hardware reports that hash at boot. A certificate and a running enclave refer to the same value.
The policy is built from the container group specification. It fixes the measured images, the command, the mounts, the capabilities, and the egress sidecar's rules. It has no environment variables and no wildcard rules.
The three images
The application, the guard, and the egress sidecar, pinned by layer measurement.
A changed byte in any image is a new deployment ID.
Command and mounts
One exact command, with the reviewed mounts, processes, and capabilities.
A new mount or capability is a new deployment ID.
The egress rules
The declared hosts, the guard's own hosts, and the resolver pins inside the sidecar.
A new host is a new deployment ID.
Per-instance values
Nothing. The policy carries no environment variables.
The account, URL, API keys, gas key, and vault arrive after boot in the instance config.
One certified image has one deployment ID for everyone who boots it. The same deployment can serve many accounts and instances, and it can receive several certificates over its life. A new guard, a new sidecar, or a policy generator that emits different bytes produces a new deployment ID, so it takes a new review. Byte-identical output from a new generator keeps the old ID.
A deployment can be reviewed once and run by its submitter, by a second operator, or by volunteers running a public image. The account records who stands behind an instance, and the block list removes instances the owner rejects.
Issuance
- Step 1
Submit
The operator runs
epoche-launch review prepareandepoche-launch submit. The source is hashed and encrypted on the operator's machine to the reviewer's attested key. - Step 2
Review
The reviewer builds the application in an isolated builder and checks it against the grading rules of the requested domain. It runs inside an Azure confidential container, so Epoche cannot read the submitted source.
- Step 3
Attest
On a pass, the issuer key inside the reviewer writes one attestation per passing domain. In the same transaction the resolver requires the attester to be a registry issuer key under a release whose status is ACTIVE.
- Step 4
Record
The operator reads each certificate back from EAS at one block and records the UID in the project file.
epoche-launch account createthen delivers those UIDs to the account.
The reviewer issues one certificate for each domain that passes. One domain can pass while the other fails, and only the passing domain gets a certificate. A FAIL never becomes an attestation.
The account checks the certificates again when it accepts the set. It refuses an expired or revoked certificate, a set that mixes deployment IDs, an attester whose release is not ACTIVE, or a deployment that is not OK. How a release reaches ACTIVE is on the reviewer releases page.
Renewal
A certificate expires 180 days after issuance. epoche-launch status raises a warning once a certificate is past half-life and a high alert inside its final quarter.
Renewal is a review. The operator resubmits the unchanged source with epoche-launch submit --renew. The current reviewer re-reviews it and, on a pass, attests a new certificate for the same deployment ID with a fresh 180 days. Nothing is extended without that review.
The account then moves its pointer. renewCertificate is callable by anyone, and the CLI sends it with gas only. It accepts a certificate only when the certificate names the same deployment and domain, its attester's release is ACTIVE, and it expires later than the current one. The expiry comparison is the only value read from the old record, and it stops the pointer moving back to a sooner-expiring certificate.
epoche-launch submit --renewResubmit the unchanged source for a fresh certificate on the same deployment ID.epoche-launch account renew-certificate --domain NPoint the account at the project's renewed certificate. Gas only, no owner signature.When the account takes a new deployment, set-deployment replaces its whole map of certificate UIDs. A domain left out of the new set becomes zero, so the account presents no certificate for it.
An expired certificate does not stop execute. The account checks the deployment status and the allowlist. The expiry is the caller's verdict and the vault's refusal, and the vault reads the Capital Integrity certificate on every operation.
A platform-only change, such as a new guard or sidecar, changes the policy bytes and therefore the deployment ID. That takes set-deployment and an owner transaction. Renewal cannot carry a certificate to a new deployment ID.
Revocation
Four different records can be withdrawn, and each changes a different check. A reader applies all of them at the block it reads.
The attestation
EAS can mark an attestation revoked. A contract read reports the certificate as absent, so isLive fails. The old UID can still be replaced by a renewal, because renewal reads only its expiry.
The deployment
The emergency administrator sets the deployment status to REVOKED in the Epoche registry. execute refuses at once, the vault refuses on its next operation, and the SDK returns invalid. A renewal does not clear it, because the account still names a revoked deployment whatever certificate it holds.
A signer key
The administrator can revoke one registered key. Its live flag becomes false permanently, and the key is never accepted again. A revoked key may still sit in its (account, url) slot, so readers test live rather than the slot.
The reviewer release
INACTIVE stops new certificates and lets existing certificates run to expiry. RETIRED_FOR_CAUSE makes every certificate the release issued stale. The next section covers retirement.
Deployment status can move from REVOKED back to OK, and a release can move from INACTIVE back to ACTIVE. Epoche treats revocation as permanent, and the governance record is where that promise lives. A reader that needs certainty reads the current status and does not infer permanence from the contract.
Blocked instances
Registration is open. Anyone who holds a certified image can boot it, configure it to serve an existing account, and register. The owner can block any key that arrives.
block(key) is owner-only and sets a permanent flag for that key. isPrimary returns false at once, so a blocked key cannot execute even at the primary URL, and the SDK drops it from the instance list callers see. A restart creates a new key, so there is nothing to unblock. The flag dies with the key.
epoche-launch account block --key ADDRESSBlock one instance key. The owner signs, and the flag never clears.epoche-launch account set-primary-url URLMove the primary URL to an origin you run. The instance configured there is primary as soon as it registers.Block a stranger who registers at your account, a copy that misbehaves, or a key that may be compromised. If a blocked copy keeps registering at the primary URL, move the primary URL. If it follows, make a source change that alters the measured image and get a new deployment ID. A change that leaves the image identical changes nothing.
For a compromised primary key, block it and restart the instance so a fresh key takes the URL. Epoche can also revoke the key in the registry, which is permanent.
The registry keeps one live entry per (account, url). A block removes the key from the verified instance list and from what can execute. The registration event and any signatures it made remain. A new boot at the same URL supersedes the entry.
Retired releases
A reviewer release is retired for cause when a defect is found in it. Its status becomes RETIRED_FOR_CAUSE. Every certificate that release issued becomes stale. Stale is derived from the release status. No field on the certificate changes, and no transaction writes the state.
Release status
INACTIVE
No new certificates from this release. Existing certificates stay live and run to their expiry. A pause and a routine retirement look the same on-chain, and the administrator can reverse the status.
Release status
RETIRED_FOR_CAUSE
No new certificates. Every certificate the release issued is stale. The chain holds the status. The defect that caused it lives in the governance record.
The SDK
Returns stale when every other check passes and the attester's release is RETIRED_FOR_CAUSE. A stale result is not a valid result, and the caller can see which release issued the certificate.
The vault
Refuses new operations under a stale Capital Integrity certificate. Withdrawal to the capital owner never depended on the agent, so nothing is frozen.
The account
execute checks the deployment status and the allowlist, so it keeps working while the certificate is stale. A Privacy-only agent keeps serving, and the SDK tells callers the review is stale.
The capital owner
Can accept the known-stale review by calling vault authorize again. The vault records the retired release it accepts and stops refusing under it.
- Recovery 1
Review again
The submitter resubmits the unchanged source under a release that is ACTIVE. Ordinary review pricing applies, and support handles reviewer-defect exceptions outside the protocol.
- Recovery 2
Move the pointer
The new certificate names the same deployment ID, so anyone can call
renewCertificateand the account points at the new record. - Recovery 3
No other step
The owner sends no transaction, the instance stays deployed, and the vault authorization still stands. A fix that changes the measured image changes the deployment ID, and then the account takes
set-deploymentand the capital owner authorizes the new deployment.
When many deployments go stale at once, Epoche runs extra copies of the newest active release. Each copy has its own issuer key. All copies carry the same release ID, and Epoche retires the extras after the wave.
Registration
A certificate says a deployment passed review. Registration says one boot of that deployment serves one account at one URL. The proof that connects them is the Microsoft Azure Attestation token for that boot.
- Step 1
Boot
Azure starts the container group under the certified policy. The guard makes a signing key and a TLS key in memory and serves three routes:
/attestation,/configure, and/status. - Step 2
Bootstrap
The CLI fetches a report, checks the reported policy hash against the certified deployment ID, and pins the TLS key. That gives it a channel to this boot and no other.
- Step 3
Configure
The CLI posts the account, the URL, any API keys, an optional gas key, and an optional vault over the pinned channel. The guard keeps the config in memory only.
- Step 4
Prove
The guard asks the hardware for a second report. The report binds the signing key, the TLS key hash, the purpose, the account, the URL, and
prevKey, the key holding the registry slot when the guard read it. - Step 5
Register
A gas key inside the guard, or an outside sponsor, gets a RISC Zero proof from Boundless. The approved program checks Microsoft's signature, the attestation type, the compliance claim, debug off, VMPL 0, and the firmware floor. Then
register(seal, inputs)writes the key. - Step 6
Ready
The guard sees its own key live on both RPC endpoints and opens the service endpoint. The CLI reads the registry, the account, and the certificates at one block and confirms the chain.
RegistrationInputs
bytes32 deploymentId the policy hash from the hardware report
address signingKey this boot's key
bytes32 tlsKeyHash SHA-256 of the TLS public key
uint8 purpose RUNTIME or ISSUER
address account the account served; zero for ISSUER
string url the configured URL; empty for ISSUER
address prevKey the slot's key when the report was builtThe registry checks the proof, then the facts the proof commits to.
The proof
The seal must name an approved MAA program and a trusted Microsoft key ID. The proof must verify against that program's image ID with the inputs and the key ID as the journal.
The key
A key that was ever registered, superseded, or revoked is never accepted again.
A runtime key
The deployment must be OK, the account must carry the pinned code hash, the account's deployment must be this deployment ID, the URL must be nonempty, and the slot must still hold prevKey.
An issuer key
The reviewer release must be ACTIVE, with no account and no URL. The issuer key registers the same way a runtime key does, and then attests certificates.
The registry keeps one live entry per (account, url). A new registration supersedes the old key at the slot, and prevKey makes a held or late report revert. Registration has no expiry and no renewal. A restart is a new key and a new registration at the same URL, so a primary instance is primary again without an owner transaction.
The owner signs nothing during registration. The registry enforces the account's deployment and the slot, and the owner's judgment appears in the primary URL and the block list.
Reading a certificate
A certificate is one input to a check. A reader that checks only that the attestation exists can accept an expired, revoked, or retired record. The full check reads the attestation and the registry at one block.
The record
Read the attestation from EAS at its UID. Require the pinned schema and an unrevoked record.
Expiry and domain
Require an expiry later than the block and a matching domain.
The attester
Look the attester key up in the registry. Require purpose ISSUER and live.
The deployment
Require the certificate's deployment ID to equal the account's deployment ID.
The status
Require the registry's deployment status to be OK. Any other value returns invalid.
The release
Read the attester's release status. RETIRED_FOR_CAUSE makes the verdict stale at best.
Another attestation naming the same deployment is not a substitute. A consumer reads the account's own UID for the domain it needs. If a read cannot be completed, the result is unknown. Unavailable evidence never becomes valid.
Changing a release's status does not rewrite older records. The reader applies the current status at the block it reads, which is why every check names its block.
The limitations field is public-safe text about what the review could not reach. The SDK shows it to callers. epoche-launch deploy and epoche-launch account show print it too, so the operator sees what the caller will see.