Repository navigation
deploy: chain-22 perps on constraint set 11 (engine 482215a8…, genesis root a45d8fda…) - #196
Merged
Merged
Conversation
…is root a45d8fda… Set 11's Grain Poseidon2 constants move the engine's hc and the perps genesis root; neither the image nor the genesis words change (durian.market #2, measured on a5e08a9): - ENGINE_HC_DECIDED = 482215a8df02dff341265c38212c47e23fc8bfb3c3297afe9c385d6a63e65073 (chain 21's image, sha256 77dfc228...); chain 21's f286a611... is kept as ENGINE_HC_CHAIN21 for the check on chain 21's genesis. The finished file's engine_hc must be the set-11 hc and not chain 21's; check-limits wants it from rand_getPerps. - PERP_GENESIS_ROOT_DECIDED = a45d8fdab8cf7dab972e76dd6a7a18d9e82fc8210afab672a161ee60021698b4 (perp-prover genesis-state over BTC-PERP -> rand perp genesis-root; the 26 words are chain 21's, sha256 bb32f0c4...). The genesis_root check is now "equals the recorded set-11 root" (was "equals chain 21's da0e3a53..."); chain 21's root is refused. The derivation moves into perp_genesis_root_step, which refuses the set-9 root and any other before the section is written. - Selftest: perp_genesis_root_step against a fake prover and rand (5 cases), and refusals of chain 21's root and engine hc in the finished file: 474 passed, 0 failed. - crates/randprotocol-core/tests/vectors/perps-v1.json: the three perp_digest vectors regenerated under set 11 (PERPS_WRITE_VECTORS=1); randprotocol-zkvm's perps_vectors failed on the set-9 values on #194/#195. core's golden test still passes. - docs/deploy.md, CHANGELOG. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YGaYNLS2uLR7w6m2JtejVo
dendisuhubdy
force-pushed
the
feat/perps-pinned-key
branch
from
November 19, 2026 18:58
a5e08a9 to
afb7f8f
Compare
dendisuhubdy
force-pushed
the
feat/chain22-perps-set11
branch
from
November 19, 2026 18:59
e271e60 to
b32eed2
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #195 (
feat/perps-pinned-key), which is stacked on #194. The durian.market side is randprotocol/durian.market#2.Values (measured on a5e08a9's release
rand, circuits 76a48dca)482215a8df02dff341265c38212c47e23fc8bfb3c3297afe9c385d6a63e65073: chain 21's image, same bytes (sha25677dfc228…), under the Grain constants.engine_program_log_heightis still 14.a45d8fdab8cf7dab972e76dd6a7a18d9e82fc8210afab672a161ee60021698b4:db2148e6…2bdais unchanged (blake3 of the code). Its set-11 hc isbe19a49a…8fb1. The script holds no AMM pin; there's a comment besidePROGRAM_VAULTS_DROPPED_OK.Changes
deploy/cut-chain22-genesis.sh:ENGINE_HC_DECIDEDis now the set-11 hc. Chain 21'sf286a611…moves toENGINE_HC_CHAIN21, used only to check chain 21's genesis.rand_getPerps.PERP_GENESIS_ROOT_DECIDED). Chain 21's root is refused.perp_genesis_root_step, which refuses a set-9randand any other root before the section is written.crates/randprotocol-core/tests/vectors/perps-v1.json: the threeperp_digestvectors are regenerated under set 11 withPERPS_WRITE_VECTORS=1.randprotocol-zkvm --test perps_vectorsfails on Re-vendor circuits: constraint set 11 (Grain constants, declared poseidon2 height, rate-¼ quotient layout, versioned rVM keys, cell-count gas) #194/perps: pinned, precomputed state-proof verifier keys for chain 22 (CON-601) #195 as they stand (the vectors are still the set-9 values). The host's set-11 digests equal the durian guest's echo.docs/deploy.md,CHANGELOG.md.Tests
SELFTEST=1 bash deploy/cut-chain22-genesis.sh: 474 passed, 0 failed (467 before). The new cases are 5 forperp_genesis_root_step, plus refusals of chain 21's root and engine hc.shellcheck -S warningis clean.cargo test --release -p randprotocol-zkvm --test perps_vectors: passes with the new file.-p randprotocol-core --lib golden: passes.Notes
Cargo.lockstill hasrand-zkvm-cudaat 71e1a04, socargo build --lockedrefuses on this branch. 60a7d03 fixes the lock: rebase perps: pinned, precomputed state-proof verifier keys for chain 22 (CON-601) #195 onto it.🤖 Generated with Claude Code
https://claude.ai/code/session_01YGaYNLS2uLR7w6m2JtejVo