Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crates/randprotocol-node/src/constraint_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub const MARKER_FILE: &str = "constraint-set";
///
/// No record states chain 20's set in one sentence the way chains 16-19 have one; its row rests on
/// the build it was cut with and on v0.8.0's refusal of it.
pub const CHAIN_CONSTRAINT_SETS: [(u64, &str, u32); 8] = [
pub const CHAIN_CONSTRAINT_SETS: [(u64, &str, u32); 9] = [
(14, "1cff3b7da248d93ab547aef5c05bb7d0d22da510b592dab9cf7374807de7c7ff", 6),
(15, "cc30e0854fb25b3abcee96bb7bc206dcd6e37862f6dfe80a05b3e474c2d1b6b8", 6),
(16, "20925ae63cfa6e6c96f3ff369486ead8ea04821fec026a55df9e2893f3d53005", 7),
Expand All @@ -71,6 +71,7 @@ pub const CHAIN_CONSTRAINT_SETS: [(u64, &str, u32); 8] = [
(19, "a3defc937d561d4beb1df9a08c9cb87a3dc32dadbfc2d1814ab6f627b0a2228a", 8),
(20, "6210cf071a390d7ac61d8cbea5dd9d139d1a493a862b54a45a498f36af2d5135", 8),
(21, "ca76c2766ed6090ac6ba5dad86b724dd5d2b80c0edfaed287cd8b129e663ca9a", 9),
(22, "29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0", 11),
];

/// The listed chain with this genesis hash (hex): its chain id and constraint set.
Expand Down
66 changes: 66 additions & 0 deletions deploy/cut-records/chain22.record
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Cut record β€” chain 22 (docs/deploy.md, "Cut policy"; audit v6, OPS-7). DRAFT, 2026-11-20.
#
# Drafted from deploy/cut-record.template by the cutover session (run from the build droplet). Amounts
# filled from the balances scan of 2026-11-20 (snapshot height 2 059 796).

chain-id: 22

reason: v0.8.7 runs chain 22 onward only β€” constraint set 11 (the cell-count gas weights with Keccak/SHA-256 lowered, Grain Poseidon2 constants made live, the per-instance quotient layout, the final EVM image with the block context, sBPF syscalls / SPL hc) changes every verifier key, every guest hc and every shielded address, so a set-11 rand-node refuses chains 14–21 at startup and no rolling update can carry it; and chain 22's genesis-gated rules need a new genesis: PST-1 (program_state.refuse_panics, monorepo#15), PERP-6 (perps.bound_payouts, monorepo#13), PERP-101 (perps.sparse_windows + max_window_heights 256, monorepo#12), multisig.max_accounts 65 536, the EVM block context (#168/#184, program_state.reference_block_window 256, Action::InvokeAt), the randomness beacon (#189: a genesis beacon section with 25 validator commitments, commit delay 256 blocks; PREVRANDAO reads it), and CON-601: validators load the pinned tier-18 state-proof key (genesis pin perps.state_proof_keys, four canonical shapes shipped beside the binary, monorepo#23), never build it β€” perps stays at max_tier 18 / 24 inputs (owner, 2026-11-19).

carries: the 25 validators Γ— 1 000 RAND on chain 21's node keys (18 genesis + 7 bonded: obs1, g1–g6; same peer ids, same hosts), payouts re-derived at their set-11 addresses from each payout key; the bridge state from the chain-21 snapshot at height 2 059 796 (2026-11-20T12:36:18Z, guardians and relayer stopped 12:35:19Z): burn_sequence 17, inbound floors from the endpoints' next sequences {2: 4, 3: 5, 4: 3, 5: 7}, chain 21's emitters unchanged, bridge fees 10/10 bps to a NEW set-11 wallet bridge-fee-recipient (fingerprint YMB3-Q7C7-8CEJ-0ZSA, owner decision 2026-11-20; chain 21's 89DS-4Q4X-HXSX-MBYW is set 9); locked ETH-USDT 2.021999 / BSC-USDT 23.001999 / Tron-USDT 30 / Sol-USDT 25 = 80.023998 == custody == zUSD supply, as genesis notes per ZUSD_CARRY: owner-carry 69.024998, anish-carry 10, shielded-5 0.999 (Ξ£ 80.023998; chain 21 launched with owner 89.002999 / anish 10 / shielded-5 0.999 β€” the 19.978001 zUSD redeemed on chain 21 since (operator test releases to Ethereum, 1–2 Nov) is taken from the owner's share) β€” the owner's and Anish's zUSD is HELD in new set-11 wallets owner-carry (CY5F-KMTK-V0S7-J0TG) and anish-carry (WC5R-B7D2-GWMC-FNSD) generated by the operator (owner decision 2026-11-20: neither key is on the operator's machine and no set-11 wallet app is released yet), forwarded to them afterwards; RAND as genesis allocs to the operator wallets the balances scan found, Ξ£ 46 431.775078887 RAND in 10 wallets (randscan-activity-w1 40 680, demo-02 1 579.958, shielded-5 989.927, shielded-3 879.983, shielded-4 839.998, shielded-2 674.996, relayer 299.976, demo-01 232.949, shielded-1 194.992, docs-programs 58.996078887) (every note store rescanned from leaf 0 against e / obs1 on 2026-11-20 β€” 23 stores in parallel, then the balances step with BALANCES_RESCAN=0 resuming those stores, as at chain 21); the faucet allow-list, the same 16 recipients in chain 21's order at their set-11 addresses (anish β†’ anish-carry); the treasury multisig, 5 of 6 with six NEW signers (treasury-signer-1..6, ~/.rand-chain22/treasury.txt), its balance 100 000 RAND carried from chain 21's multisig register (multisig_rand_held, asserted equal β€” not new issuance); perps carried (empty: 0 accounts, 0 collateral), its genesis root re-derived under set 11 (a45d8fdab8cf7dab972e76dd6a7a18d9e82fc8210afab672a161ee60021698b4).

drops: the dropped validator archive2 (offline since about 9 Nov on the locked stg account; its 1 000 RAND chain-21 stake and any unwithdrawn rewards are not recreated); program vaults: durian.market's chain-21 AMM pool, 200 RAND + 20 000 DUR (never swapped; RDLP supply = the launch mint, no outside users), redeployed fresh on chain 22 (PROGRAM_VAULTS_DROPPED_OK=1); validator fee rewards not withdrawn, 0.012393625 RAND (register_total βˆ’ genesis_staked; chain-20/21 precedent, REWARDS_DROPPED_OK=1); the shielded pool's RAND held by wallets the operator does not hold, 6 403.099083975 RAND (pool_value 52 834.874162862 βˆ’ the 46 431.775078887 carried) β€” faucet mints and payments to users, whose notes cannot be re-created without their addresses; the tokens other than zUSD registered on chain 21 (DUR, RDLP and the docs/program examples), not bridge-backed β€” durian.market re-registers what it needs.

scan-floor: 187556

clients: rand CLI v0.8.7 (tag v0.8.7 at fullnode bf5aabdf, the signed release asset, constraint set 11); bridge relayer and guardians: rolled to a BR-1005 build (bridge main) at the cut, bridge PR #15 for set 11; clients repo: main 2f80ad5e (#14, set-11 wallets) plus #16 deriveKey, released with FULLNODE_TAG v0.8.7 (PR #15) right after the cut; randscan.org PR #11 and durian.market PR #2 (engine hc 482215a8…, AMM redeploy) deploy right after the cut; randbridge.org / randprotocol.org / zusd.money / the monorepo site-sync pins move to the chain-22 genesis after the cut; accepted: wallets and sites cannot prove on chain 22 until those land (as at chain 21).

second-operator: WAIVED β€” as at chains 20 and 21: one operator holds every validator key and every host, so no second operator exists to rebuild the genesis; cutover-fleet-chain22.sh push runs with SECOND_REBUILD_WAIVED=1 and appends `second-rebuild-waived:` below.

second-hash:

rollback: every host keeps chain 21's data dir (-ca76c276…, data-21 on the guardian hosts) and the v0.8.6 binaries as /root/rand-node.pre-c22 and /root/rand.pre-c22 plus chain 21's msauth blob as /root/msauth-vk-production.bin.pre-c22 (68facb06…, sha-checked against v0.8.6's signed SHA256SUMS) for at least a day; chain 21's history is kept from height 187 556 on hosts e and obs1 (rand-archive-2 is abandoned); the steps: the bridge stopped first, `deploy/cutover-fleet-chain22.sh quiet <genesis>` (nothing burned or minted on chain 22, else the owner decides), `halt`, `rollback`, `start`, `wait21`, then the bridge daemons' chain-21 configs restored and started; retire-chain-dirs.sh is not run until chain 22 has run a day.
# OPEN β€” printed by the cut (issue #166): add this row to CHAIN_CONSTRAINT_SETS in
# crates/randprotocol-node/src/constraint_set.rs (raise the array's length) and commit it;
# `deploy/cut-chain22-genesis.sh check-limits` refuses until the tree has it.
constraint-set-row: (22, "29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0", 11),
# OWNER VALUES TO CONFIRM (written by the cut; OPEN 9, OPEN 10): EVM block context (#168) and the
# randomness beacon (#189) β€” carried by the owner's decision of 2026-11-18, the values defaulted.
reference-block-window: 256
beacon-commit-delay-blocks: 256
# The beacon commitments, one per validator, as each validator's operator sent it. PROCEDURE: each
# validator operator runs `rand-node beacon init --datadir <its datadir> --key <its node key>
# --chain-id 22` ON ITS OWN HOST and sends ONLY the printed commitment; nobody else ever
# holds a seed (never copy beacon.seed.json between hosts); each keeps an OFFLINE, ENCRYPTED
# backup of beacon.seed.json, for restoring onto the same validator only (the owner accepted
# total seed loss β€” which halts the chain β€” as an operational risk covered by these backups,
# 2026-11-18). Before its node starts, each host runs deploy/check-beacon-seed.sh --genesis
# <this genesis> --datadir <datadir> --key <node key>, and after the start the same with --rpc.
beacon-commitment: a 25mvUYQj7tATFP5u1aQgmy3uve25k9kod1F25rFboXkB 158da9f8600214317fcf10fe225dbdcfbc6b3c9eaf4e24a66413a403e4f35785
beacon-commitment: b HCSU7c48f7KJRJjBtPDNULtt6fNWnU2Hgr6CwLExaekn cd0abe7fadf673e68552e55d076cb75315cc867705538dd29f00d00137baec29
beacon-commitment: c F2QNHgWnv1K24MoKskpDC3C9aygM6UAqky9VaKHoRFWQ 39da3e8ab1f5b006496a5e9ee87518e264db3cee2b5000689e19f91cc1246562
beacon-commitment: d 6jEKfmMyMLyT1GohTffhPS7twLSGoJMKpfUamsxb7ZYM cfaff21cfc456d2eda8260a85726de3e6263e8ba256e2b9c7fcd682bb1082af6
beacon-commitment: e EdrEC2QRQrQF64iRXxF9927jNj6RidiHHByzx5xD6F1e 1065180afc69fc3b05901ede0a3c2b39a87029c7ecde2b6f0381feb2033c2065
beacon-commitment: f 931Kx3rdFPUzS8qP92qVy4gyzwhkVqCZEmj2UHAfE8VG ee05f95187ec26458f0920e0b1ad15679ad970b5b40751d5b83b310beeb0f3e7
beacon-commitment: lon1 6Sb8cSkWjRS3L3fp21eurW6g9bM3L4AD935y6JpGravQ 62c057ac86233b1c2e4a37e4160a578307e0d47856d1e2e2dd2c30a048cca38a
beacon-commitment: sfo3 5qEMB4VJUJe2JzeVrdavSYDQmfdNb8dokKvphTpVEY3s 0f8dbe39c69146953f60be9a9bdfd502364e150eb9fa394a725c6e08ee532613
beacon-commitment: tor1 8wHDXs4pqeYQfnjFdMRTqz724wQ8DbLT5YKgKQZh19cv 3ab47b36e7cefaab8e9bdbb362db56cb4933c4f60efabd039bb4a1e44da8682a
beacon-commitment: blr1 GMHuR6zWf4ux2wocxxQ1NRHCCS675v2NRZKZVuGAz3oZ 0d39205af93f100cf288b9e51cbbe65b12938250b38a19a2a025f33a8a64ebed
beacon-commitment: syd1 3eMCez85N5Fm8DaRCEy7AnKdnzVeSG67jtwLCVZUGevT 1ac0ce168cd273e901c723ff32568c6ea2f32c6b76fe01fb03266cc4a21ec92e
beacon-commitment: atl1 GtfF6HBGJGEte5cjvWsRNGbNKLULLPEL3D5DVgBdizHi e4362677af685ec14d7162509fcd7e528d9107d3aa176663743fe82f061abda6
beacon-commitment: ams3 4PnUGoYwJ5XDzdDE3xi47Hoz41gYz1PDXdwQXYdyFT9i 70eda06a646bdebb1dd133f79fa54a77847be9b52eeb40c16b0a1cab72791ef8
beacon-commitment: nyc1 G14MfUzKnwL1rzeWWtphhmdm7UQr1GjvB4jtsSXDfaHE faa44e265f29d4b30dac83fadd9fba688da5fd3a292e7c240058d4d5d7da70d8
beacon-commitment: nyc2 6UqCeDnZK5nWhcnz8BmUS7igW2h3hWpyxUMX1ahtimAk 6477453dd11880a345c572a78d8e3f6852a33c3b5434acb10c4f889474f672a2
beacon-commitment: sfo2 DaeYv4rsnvfDh6Esgz6eyKGem2mMjYt71rq3ujnHb7aN 9da0778eb5ccb5b6598dfa782a32e7e438034699ba4c5cdc20512d64630e8946
beacon-commitment: mkc1 9QNqLrFXdBCUw9kAEGsMnftnfCnuCufAMn6AjJDFdvef c10262844af39e08832880bc1ab44ab357f00719bf4daef60f176558640aef17
beacon-commitment: mem1 34BXr3L2X7p9FaucVterS2TqfdnmA6oLyexoQ8NrMVL2 bf57cbd6b7bacda5c45521c6723c0b4fb6eb6f7b43911c81d7b17df6d9edbee8
beacon-commitment: obs1 5TAofR4ijKxgCQj4cf3SoWjGm6pZZZfimaz8wGi37Km5 69e5ae82e450d987346d505e7e21e1224472a48154d4b4f09b28c2fe21b9f53f
beacon-commitment: g1 DfWAbw6UEdjDi2iX7F3R8ZdmsbRerhaNWZnnd4uGmxES c556e7c5a31b6e56c63824f00caa8eb104fcf64395862f078259ffbbc8862f7c
beacon-commitment: g2 3ZHkPYu7jBm7KgYXELGfAGtb5kJbZ9MG3FkHKx6EaN1E 058c358d240012c3b474e82b8bdebd596aa162bfe79830a392a59f128a4a2e63
beacon-commitment: g3 8BG7tefFQA7jnGUwXNEqoF431mxZVA1avtSVvhTLqoJe 09f2ccd4175e0f2b734dac78d991a64ee14c4f35b7298e2a5856b95c4df1d7e4
beacon-commitment: g4 B4kWfbUL9AuA1yMMreg2A4UA8z8pf2GHRdo7QLFxwzbh aa1b971ebf19269a2eff7a9bf242540db09bc5f9cac114e0c2801b261031859d
beacon-commitment: g5 7nYAgde7DAYvxFcF9QYJ5goQG4GJqdKpZ3sRpAYaXaKn d00fea6f2bb6a4a197ed86d1fbec05baadc244141c976f63eee79dbf1121f233
beacon-commitment: g6 6RpSjdw6A6JwH1uuu5ZpBWNwmWK3e5FQjLuggDhLBAAE 95c8848582ed68964f232acc125e51e5ce943ad4213c0f1977c602fd2074bb94
# written by the cut: every rand1… address in chain 22's genesis was derived under constraint set 11
address-derivation: set 11 via WALLET22 sha256 4ca4f9083a4549f9d8379af6ded8c280226e69373986132c9a4810f33ed890f8 (probe S3VP-7C0T-GGSA-BJJY), chain 21 via WALLET sha256 4cd9beafdc9c05fd34bc2f10d48a6dd83cba6eaefabb41f863d6369cb9e2b912 (probe XCGM-G4XD-CQQA-753X); 59 key file(s) re-derived; given: none
second-rebuild-waived: 2026-11-21T03:12:28Z genesis 29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0 by root@rand-cs11-build: one operator holds every validator key and every host; no second operator exists to rebuild the genesis for this cut
Loading
Loading