Skip to content

feat(init): point AMD TEE registry prefill at the canonical program - #632

Merged
kariy merged 1 commit into
mainfrom
feat/amd-tee-registry-canonical-program
Jul 7, 2026
Merged

feat(init): point AMD TEE registry prefill at the canonical program#632
kariy merged 1 commit into
mainfrom
feat/amd-tee-registry-canonical-program

Conversation

@kariy

@kariy kariy commented Jul 7, 2026

Copy link
Copy Markdown
Member

Summary

katana init rollup prefills the TEE registry address when you pick a TEE proof mode. The Sepolia AMD registry constant pointed at 0x06ef2e9d…, which pins a superseded SP1 program (0x00ed032f…). A rollup initialized through that prefill would settle against a registry that rejects the current proofs ("Wrong program").

This updates the prefill to the canonical settling registry and adds a mainnet default.

Changes

  • AMD_TEE_REGISTRY_SEPOLIA 0x06ef2e9d…0x06616163a5221890df1772a504f94d02122a12ed5b4c35ef7480b19b04c73761 — the Sepolia settling registry that pins the production TEE-VM image's SP1 program 0x0019e70e… (what saya-tee proves). Refreshed the doc comment + Source link (the old deployments/sepolia.json link was dead — that file was removed in katana-tee).
  • Add AMD_TEE_REGISTRY_MAINNET = 0x04ec71aee9b92315ec2a7368eace15fd82fd816dd74ce9d0afcfc7077cf9fe2d — the mainnet registry pinning the same 0x0019e70e… program.
  • prompt.rs: prefill the AMD registry for Mainnet + Sepolia (previously Sepolia only).

Context

cartridge-gg/katana-tee made the SP1 v6.1.0 alloy14 build canonical (program 0x0019e70e…), matching the production TEE-VM image. The registries that pin it are 0x06616163 (Sepolia) and 0x04ec71ae (mainnet). Sources: katana-tee README / mainnet.json @ 99b4096.

Testing

cargo test -p katana cli::init::tests — 26 passed. Prefill remains editable; the --tee CLI-flag path (explicit --tee-registry-address) is unchanged.

🤖 Generated with Claude Code

The Sepolia AMD TEE registry prefill (0x06ef2e9d) pinned a superseded SP1 program
(0x00ed032f) — a rollup wired through it would settle against the wrong program.
Update it to the settling registry 0x06616163, which pins the production TEE-VM
image's program 0x0019e70e (what saya-tee actually proves). Also add a mainnet
prefill (0x04ec71ae, same program) so mainnet TEE rollups get a default too.

- AMD_TEE_REGISTRY_SEPOLIA -> 0x06616163 (+ refreshed doc/source; old sepolia.json
  link was dead)
- add AMD_TEE_REGISTRY_MAINNET (0x04ec71ae)
- prompt prefills the AMD registry for Mainnet + Sepolia

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.30.

Benchmark suite Current: 1cf5165 Previous: 5f81a1f Ratio
FinalityStatus/compress 1 ns/iter (± 0) 0 ns/iter (± 0) +∞
TypedTransactionExecutionInfo/compress 18011 ns/iter (± 100) 13549 ns/iter (± 53) 1.33

This comment was automatically generated by workflow using github-action-benchmark.

CC: @kariy

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codec benchmark diff vs main

Benchmark Baseline (ns) Current (ns) Δ
CompiledClass(fixture)/compress 2637825 2677558 +1.51%
CompiledClass(fixture)/decompress 2782005 2810572 +1.03%
ExecutionCheckpoint/compress 34 30 -11.76%
ExecutionCheckpoint/decompress 25 23 -8.00%
PruningCheckpoint/compress 34 30 -11.76%
PruningCheckpoint/decompress 25 23 -8.00%
VersionedHeader/compress 671 648 -3.43%
VersionedHeader/decompress 886 825 -6.88%
StoredBlockBodyIndices/compress 78 74 -5.13%
StoredBlockBodyIndices/decompress 38 34 -10.53%
StorageEntry/compress 158 142 -10.13%
StorageEntry/decompress 157 140 -10.83%
ContractNonceChange/compress 173 145 -16.18%
ContractNonceChange/decompress 273 244 -10.62%
ContractClassChange/compress 202 187 -7.43%
ContractClassChange/decompress 277 256 -7.58%
ContractStorageEntry/compress 169 151 -10.65%
ContractStorageEntry/decompress 351 317 -9.69%
GenericContractInfo/compress 135 133 -1.48%
GenericContractInfo/decompress 118 102 -13.56%
Felt/compress 94 80 -14.89%
Felt/decompress 63 54 -14.29%
BlockHash/compress 90 80 -11.11%
BlockHash/decompress 63 54 -14.29%
TxHash/compress 94 80 -14.89%
TxHash/decompress 63 54 -14.29%
ClassHash/compress 92 81 -11.96%
ClassHash/decompress 62 53 -14.52%
CompiledClassHash/compress 94 81 -13.83%
CompiledClassHash/decompress 62 54 -12.90%
BlockNumber/compress 51 46 -9.80%
BlockNumber/decompress 24 24 +0.00%
TxNumber/compress 50 46 -8.00%
TxNumber/decompress 25 24 -4.00%
FinalityStatus/compress 0 1 +Infinity%
FinalityStatus/decompress 10 10 +0.00%
TypedTransactionExecutionInfo/compress 13549 18011 +32.93%
TypedTransactionExecutionInfo/decompress 3747 3643 -2.78%
VersionedContractClass/compress 368 394 +7.07%
VersionedContractClass/decompress 805 794 -1.37%
MigratedCompiledClassHash/compress 168 146 -13.10%
MigratedCompiledClassHash/decompress 158 138 -12.66%
ContractInfoChangeList/compress 1409 1390 -1.35%
ContractInfoChangeList/decompress 2249 2104 -6.45%
BlockChangeList/compress 611 608 -0.49%
BlockChangeList/decompress 934 859 -8.03%
ReceiptEnvelope/compress 26972 28161 +4.41%
ReceiptEnvelope/decompress 6505 6099 -6.24%
TrieDatabaseValue/compress 148 167 +12.84%
TrieDatabaseValue/decompress 264 212 -19.70%
TrieHistoryEntry/compress 278 289 +3.96%
TrieHistoryEntry/decompress 305 238 -21.97%

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Runner: AMD EPYC 7763 64-Core Processor (4 cores) · 15Gi RAM

@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.08%. Comparing base (9bde0ae) to head (1cf5165).
⚠️ Report is 487 commits behind head on main.

Files with missing lines Patch % Lines
bin/katana/src/cli/init/prompt.rs 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #632      +/-   ##
==========================================
- Coverage   73.32%   68.08%   -5.24%     
==========================================
  Files         209      334     +125     
  Lines       23132    46716   +23584     
==========================================
+ Hits        16961    31806   +14845     
- Misses       6171    14910    +8739     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kariy
kariy merged commit 300ae44 into main Jul 7, 2026
19 of 21 checks passed
@kariy
kariy deleted the feat/amd-tee-registry-canonical-program branch July 7, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant