DAO / Roles, keys and contracts
Roles, keys and contracts
Epoche deploys four shared contracts on Base mainnet, and each app adds its own account, plus a vault for a Capital app. Behind them sit role keys, a fixed registration proof, and a list of Microsoft signing keys. This page names each address, says what the contract holds, and says which role holds each key. It lists roles and key IDs, never key values.
Contracts on Base
The launch deployment ran on 2026-11-21, in blocks 60429013 to 60429038, on chain 8453. The deployer 0xF4Efd77a5e1Dcdd61eB5b05401E997587FC6AE1Dholds every governance role until the redeploy that follows the owner's review. The four shared contracts are fixed-code releases, built with Forge and published with their source. None has a proxy, an upgrade admin, or a pause.
EpocheRegistry
0x7B823101b79F3f8e8882b808388B08B7ebFE507d
Holds the status of each reviewer release, NONE through RETIRED_FOR_CAUSE, and the status of each deployment, OK or REVOKED. It holds one entry for every attested key: the deployment ID, the purpose RUNTIME or ISSUER, and whether the key is live. It holds the live key for each account and URL pair, the block each key registered in, the approved proof programs and their kinds, the trusted Microsoft key IDs, and the watcher deployment. Its immutable fields name the verifier router, the registration program image ID, EAS, the certificate schema, the ERC-8004 identity registry, the account code hash, and the release approver and emergency administrator addresses.
CertificateResolver
0x6E9ED60afFe7e448AdB516F122cbdC45377960B8
The EAS schema resolver for certificates. It holds no state. EAS calls it inside the attestation transaction, and it refuses the attestation unless the data decodes, the domain is Privacy (1) or Capital Integrity (2), the deployment ID is nonzero, the expiry is exactly 180 days ahead, the attestation is revocable, the attester is a live ISSUER key, and that key's release is ACTIVE.
DomainPriceRegistry
0xBF232eEAf21e83c4d057Ae49cbbc97E330502c67
Holds one review price per domain, in atomic USDC, with a flag for whether the price is set. The deployer owns it. Both prices were set to 0 at launch, so a review costs the submitter nothing on chain today.
ReviewEscrow
0x77f7EA89C0D569B180724db99d20f53Db9C9482E
Holds review deposits in USDC until the reviewer delivers a result or the deposit is refunded. It records each deposit's identity and state, the payee, and the gateway key allowed to hold, deliver, and refund. The payee is the deployer. The gateway is 0x6Ab549E3899efA2A6EA33e391BDE2F22B33fC9dC. The refund timeout is 86400 seconds, after which anyone can return a deposit.
AgentAccount, one per app
Code hash 0x708d4155c12af7390feb943fbc606a94bdb1a1efbc77522e24ea3c79bf2fbd2e
Each app's on-chain account, deployed from one pinned bytecode. There is no factory and no account list, so the code hash is how the registry, the vault, and the SDK recognize an account. It holds the owner, a pending owner and the time a transfer unlocks, the deployment ID, one certificate UID per domain, the primary URL hash, the block list, allowed call targets, skill prices, and the ERC-8004 agent ID.
MandateVault, one per Capital app
No shared address. The capital owner deploys one per app.
Holds the capital owner's USDC and WETH. It records the authorization, which names a deployment ID, an account, the account's owner at authorization, and any retired release the capital owner accepted. It also holds the limits, the rolling and lifetime spend, and the consumed operation IDs. The capital owner deploys it, funds it, withdraws from it, and tightens its limits. Only the account at the primary URL can swap with it.
Shared dependencies
Epoche's contracts read contracts from other teams and name some of them at deployment. Each Epoche contract that reads EAS, the Epoche registry, or the identity registry holds the address as an immutable constructor argument, so changing one means a new deployment. The escrow names USDC when it is created.
0x4200000000000000000000000000000000000021 holds the certificate attestations. Its implementation sits behind a proxy.
The ERC-8004 IdentityRegistry at 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432holds each agent's NFT. An account owns its token for life, and the token's metadata names the account.
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 is the payment token for review deposits and skill prices. Its implementation sits behind a proxy.
The RISC Zero verifier router at 0x6Fa0e01f1dBaA62255e546c564B0D41E9B6cA6ca checks every registration proof. Its routes are below.
The deployer holds release approver, emergency administrator, challenge checker, confidential contact, and launch owner. The registry fixes the release approver and the emergency administrator for the life of this deployment, so changing either means a new registry. See who governs today.
Keys by role
Two questions decide what a signature is worth. The owner wallet says which instances an owner stands behind. The enclave key says what is running right now. A sponsor key answers neither. It pays gas.
Owner wallet
Held by the app owner, ideally a Safe. Permanent.
Owns the account. Sets the primary URL and the block list, publishes skill prices, and starts a 48 hour ownership transfer. No automation path uses it.
Launch owner
0xF4Efd77a5e1Dcdd61eB5b05401E997587FC6AE1D, the deployer.
Holds the DAO's authority at launch. Signs the approval record over a reviewer release, its exam bundle digest, the release approver's signed approval digest, and the privacy package digest. No DAO contract exists, so that record is the authority.
Release approver
0xF4Efd77a5e1Dcdd61eB5b05401E997587FC6AE1D, fixed by the registry.
Submits a release as PENDING and activates it. Signs a ReleaseApproval over the release ID, the exam bundle digest, and a deadline. Adds Microsoft keys and approves proof programs.
Emergency administrator
0xF4Efd77a5e1Dcdd61eB5b05401E997587FC6AE1D, fixed by the registry.
Revokes a key or a deployment, moves a release to INACTIVE or RETIRED_FOR_CAUSE, and removes a Microsoft key. Every action only narrows authority.
Challenge checker
0xF4Efd77a5e1Dcdd61eB5b05401E997587FC6AE1D, recorded in the release record.
Checks a challenge during the window and can hold or block activation. A challenge counts only with the checker's countersignature over its digest.
Reviewer issuer key
Inside the reviewer enclave, in memory only. One reviewer boot.
Attests certificates in EAS. The registry admits it with purpose ISSUER while its release is ACTIVE, and the registry entry names that release. It cannot sign a response for an app.
Enclave signing key
The guard sidecar, in memory only. One boot.
Signs every response. If the instance sits at the account's primary URL, it calls execute. A restart makes a new key and a new registration at the same URL.
Enclave TLS key
The guard sidecar, in memory only. One boot.
Terminates https with a self-signed certificate. Callers pin its public key hash, which the hardware report binds beside the signing key.
Gas key
The guard, delivered in the instance config. The settlement writer is 0x82D5E03459Fafff6E823f0859400E17EDcd24a1b. One boot, reused by the operator.
Pays for the proof and the registration, and tops up the signing key. It holds dust, and its custody record is separate from the owner keys.
Review gateway key
The reviewer service, 0x6Ab549E3899efA2A6EA33e391BDE2F22B33fC9dC.
Holds, delivers, or refunds review deposits in the escrow. The escrow refuses a gateway equal to its owner, and this key has no power outside the deposits.
Exam key
A candidate reviewer, in memory. One exam deployment.
Signs exam answers. It cannot issue certificates, and the registry never records it. Its attestation travels inside the exam result bundle.
Sponsor and relay keys
The CLI's funded key, or a relay's own wallet.
Pay for a registration and top up the primary. A sponsor is trusted for liveness only, and the enclave never contacts one. If a relay withholds a report, the CLI or another relay submits the same report.
Settlement uses a gas key: a fixed writer pays, top-ups stay manual, a low balance refuses the operation, and the operation deadline is 120 seconds. A review deposit sits in the escrow until delivery or refund, and the two flows never share a key.
Microsoft signing keys
A registration proof names the key that signed its Microsoft Azure Attestation token. The registry refuses the proof with MaaKeyNotTrusted unless that key ID is on its trusted list. The registry never drops a key on its own.
A key ID is sha256(issuer ++ 0x00 ++ SPKI DER), so it names the public key that a certificate carries. Three keys were trusted on 2026-11-21, all of them listed by sharedeus.eus.attest.azure.net/certs at 15:54 UTC:
0x941695c903a9b81952690c6a7d127ff2a335716a747b153a78f47b97ac054785, self-signed. Added in block 60430424.
0x2b1d3d6ffc043eaf7b216e5cf1594b4d8dc7cfbfb6f4eaecc1bb513e35b3a4d9, chained to Microsoft's CA. Added in block 60430427.
0x1c06e906a71190529865e6257f2f407bc275c265dee04719d0e39f3346f33c9c, self-signed. Added in block 60430430.
Two of the three keys are self-signed, which is why the registry keeps a list rather than checking a certificate chain. A key stays trusted after Microsoft stops listing it, so old attestations stay checkable.
Only the release approver adds a key, with addMaaKey. Only the emergency administrator removes one, with removeMaaKey, and a removed key stays out until the release approver adds it again. No watcher deployment is registered on this registry, so a hand pass with the deployer key is the only route today. The owner runs it before each production registration and once a day while registrations are expected. The operator CLI checks maaKeyTrusted before it proves, so a registration under an unknown key stops before it spends.
Microsoft replaces its self-signed keys roughly daily, and not on a fixed clock. A sampler on search indexer 1 reads /certs every four hours and logs each key ID with whether the registry trusted it at one block. The log stays on that host, at /var/lib/maa-key-log. It shows how long a key stayed listed. It cannot say which key signed a fresh token, because that needs a report from hardware.
Adding a key is one transaction by the release approver. Removing one is a deliberate act by the emergency administrator. Both are public and both leave an event.
The registration proof
The registry admits an enclave key only through a proof from one RISC Zero program, at image ID 0x12e24f9216fb2663f009f8ba8c5f34915c807cac5cf92ff291caabccd33443f8. The owner approved it for the launch on 2026-11-21.
The program checks Microsoft's token for the hardware report: the signature under the named key, attestation type sevsnpvm, Microsoft's compliance claim for the utility VM, debug off, a report requested at VMPL 0, and Genoa firmware at or above the floor. It commits the token's hostdata as the deployment ID, and it requires reportData to be the hash of the signing key, the TLS key hash, the purpose, the account, the URL, and prevKey. The journal the registry checks is abi.encode(inputs, maaKeyId), so a proof cannot answer for another key ID or other inputs.
The program was built from source commit c3a8c7bea099f6a9f01fee3fc60f21467e9b2224 with Rust 1.97.0-risc0 and RISC Zero 3.0.6. The release record is packages/registration-proof-maa/release/registration-maa-guest.json.
This registry registered the image ID as a CHIP program in its constructor, and the launch run moved the same ID to kind MAA in block 60429033. It has one approved MAA program today. The release approver can approve another program, or change a program's kind, with setProofProgram in one transaction. The emergency administrator can only withdraw a program. Until the redeploy, one key can change the registration rule.
The Groth16 router
The registry verifies each seal through the RISC Zero verifier router at 0x6Fa0e01f1dBaA62255e546c564B0D41E9B6cA6ca. The deployer owns the router, and it is Ownable2Step, so the post-review deployment can hand it to a Safe without a new router.
The router sends selector 0x73c457bato RISC Zero's Groth16 verifier 3.0.0. RISC Zero paused that verifier on 2026-11-19 at block 59683151 after GHSA-g6qg-9j8p-7j87, where a holder of one valid receipt could get any claim accepted. On 2026-11-21 the deployer added selector 0xe71e6620, which is Groth16 3.1.0, with emergency stop 0x5144A37e65fd032F628663Cb21E16490378a8630, in transaction 0x1b173760aea2d244b4dd509e6b3e34d87703366f4b73b7cb3588ae9267071b21 at block 60436290. The 3.0.0 route remains and refuses every proof.
Every proving host now proves with r0vm 3.1.0. The guest keeps its RISC Zero 3.0.6 manifest, and the rebuilt guest was byte identical to the 2026-11-17 one, so the image ID and the registry stay. Each registration still proves with epoche-registration-prover-maa --prove-locally. No proving market fetches this program, because Boundless closed its Base market on 2026-11-17.
Change the program image ID, the verifier selector, or the router, and every registration lands under a different rule. Each of those changes goes through one of the role keys above.
Azure confidential containers
Epoche runs the reviewer in an Azure confidential container group on AMD SEV-SNP hardware, under a CCE policy generated at build time. The policy pins the application, guard, and egress images, the exact command, the mounts and capabilities, and the egress hosts. It holds no environment variables and nothing per instance, so one certified image is one deployment ID for every operator. Microsoft Azure Attestation at sharedeus.eus.attest.azure.net signs the token that names the measured policy and the fresh keys.
The reviewer group serves plain HTTP on its public address at port 8080. Caddy on search indexer 1 terminates TLS at https://reviewer.epoche.buildand reads the group's address from a file on every request. With no address in that file it answers 503 with code REVIEWER_FRONT_NO_UPSTREAM. The front has no access log. Caddy's error log names the request line and redacts credentials. The body limit is 116 MiB, the reviewer's own limit.
Deployed apps run in the operator's own Azure subscription, not Epoche's. Each app is a container group with the application, the guard, and the egress sidecar. The guard takes one post-boot config over a channel bound to the hardware report, and the config lives only in memory.
Model tasks leave the reviewer for Phala confidential inference at https://inference.phala.com. The reviewer checks the gateway's attestation and pins its TLS key before it sends a prompt, and it reads Phala's collateral from pccs.phala.network. The provider and model are named in the release manifest, so a different model is a different reviewer release.
The two search indexers
Two independently operated indexers read the registry from Base and answer POST /v1/search. Each has its own host, provider, region, SSH key, and TLS certificate.
search-1.epoche.build
OVHcloud US VPS in Virginia, 135.148.239.106.
Image sha256:9f225cee…5474, built from commit d25e3bb5. Reads Base through Alchemy and publicnode, asks both on every read, and requires them to agree.
search-2.epoche.build
DigitalOcean droplet in San Francisco, 137.184.230.75.
A separate no-cache build of the same commit, image sha256:229019f0…34c5. Reads Base through Tenderly and Alchemy, again requiring an agreement.
The two share the Alchemy key, the epoche.build DNS zone, and their owner. A fault in one infrastructure provider, region, host, keyless RPC, or image build cannot reach the other. Whoever controls the DNS zone controls both names, and a second operator with their own accounts and domain would close that gap.
An index is a hint. A resolver re-reads the registry from the chain, and the SDK's FailoverSearchProvider asks the next index when one fails and never votes. Operators compare the two with scripts/launch-search/compare-indexes.ts, which requires both finalized blocks to be canonical at a third RPC that neither indexer reads, and compares the ranked records with observation times set aside.
Indexer 1 also hosts the reviewer front above and the Microsoft key sampler. The sampler runs as its own system user with its own Node binary and data directory, and shares no file, secret, or Docker socket with the search containers.
Callers read the registry, EAS, and the account at one block agreed by two RPC endpoints. A search index, a relay, or a sponsor can delay a registration. None of them can change what the chain says.