{"id":25945497,"url":"https://github.com/base/op-enclave","last_synced_at":"2025-04-09T10:05:24.898Z","repository":{"id":253328703,"uuid":"843175507","full_name":"base/op-enclave","owner":"base","description":"op-stack state(less) transition in an AWS Nitro enclave","archived":false,"fork":false,"pushed_at":"2025-03-31T19:02:20.000Z","size":1175,"stargazers_count":62,"open_issues_count":4,"forks_count":32,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-04-02T08:49:51.272Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/base.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-16T00:11:42.000Z","updated_at":"2025-03-17T22:47:54.000Z","dependencies_parsed_at":"2024-10-03T12:12:29.641Z","dependency_job_id":"39d394e0-3df5-4689-8ab9-d4ed2b2f7d38","html_url":"https://github.com/base/op-enclave","commit_stats":{"total_commits":109,"total_committers":4,"mean_commits":27.25,"dds":0.02752293577981646,"last_synced_commit":"9f3bc7c7e236ac4d61fcdf9b08074f59985062d3"},"previous_names":["mdehoog/op-nitro","base-org/op-enclave","base/op-enclave"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Fop-enclave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Fop-enclave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Fop-enclave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Fop-enclave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/base","download_url":"https://codeload.github.com/base/op-enclave/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018060,"owners_count":21034048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-04T09:12:54.045Z","updated_at":"2025-04-09T10:05:24.868Z","avatar_url":"https://github.com/base.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# op-enclave\n\n`op-enclave` is a relatively small modification to the [op-stack](https://github.com/ethereum-optimism/optimism/)\nthat proves state transitions in a AWS Nitro Enclave, and submits the resulting state roots to the L1 chain.\nThis removes the need for the 7-day challenge period, and allows for immediate withdrawals.\n\n## Directory Structure\n\n\u003cpre\u003e\n├── \u003ca href=\"./bindings\"\u003ebindings\u003c/a\u003e: Go bindings for various contracts, generated by `make bindings`\n├── \u003ca href=\"./contracts\"\u003econtracts\u003c/a\u003e: Solidity contracts\n├── \u003ca href=\"./op-batcher\"\u003eop-batcher\u003c/a\u003e: Batcher modification that submits batches immediately after withdrawals are detected\n├── \u003ca href=\"./op-da\"\u003eop-da\u003c/a\u003e: Data availability service for writing to S3 / file system\n├── \u003ca href=\"./op-enclave\"\u003eop-enclave\u003c/a\u003e: Stateless transition function, for running in an AWS Nitro TEE\n├── \u003ca href=\"./op-proposer\"\u003eop-proposer\u003c/a\u003e: L2-Output Submitter, communicates with op-enclave and submits proposals to L1\n├── \u003ca href=\"./op-withdrawer\"\u003eop-withdrawer\u003c/a\u003e: Withdrawal utility for submitting withdrawals to L1\n├── \u003ca href=\"./tools\"\u003etools\u003c/a\u003e: Tools for registering enclave signer keys with SystemConfigGlobal and verifying PCR0s\n├── \u003ca href=\"./testnet\"\u003etestnet\u003c/a\u003e: Dockerized testnet for running the op-enclave stack\n\u003c/pre\u003e\n\n## Running a testnet\n\n1. Deploy the Nitro certificate manager using `make deploy-cert-manager`:\n```bash\nIMPL_SALT=0 DEPLOY_PRIVATE_KEY=\u003cprivatekey\u003e RPC_URL=https://sepolia.base.org make deploy-cert-manager\n```\n\n2. Deploy the system contracts using `make deploy`:\n```bash\nIMPL_SALT=0 DEPLOY_PRIVATE_KEY=\u003cprivatekey\u003e DEPLOY_CONFIG_PATH=deploy-config/example.json RPC_URL=https://sepolia.base.org make deploy\n```\n\n3. Generate a testnet genesis block and deploy the proxy contracts for a new chain using `make testnet`:\n```bash\nDEPLOY_PRIVATE_KEY=\u003cprivatekey\u003e L1_URL=https://sepolia.base.org make testnet\n```\n\n4. Copy `testnet/.env.example` to `testnet/.env` and fill in the environment variables,\nin particular the `# per deploy` section at the top.\n\n5. Run the testnet:\n```bash\ndocker-compose -f testnet/docker-compose.yml up\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase%2Fop-enclave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbase%2Fop-enclave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase%2Fop-enclave/lists"}