Repository navigation
docs(contracts): detailed pages for Chamber, Reserve, registrar and verifier - #15
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Adds a closing-row modifier to the architecture diagram grammar so the registrar can sit under the Reserves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replacing the guardian does not end an inflow pause; the exit-window claim is scoped to users who can spend; duplicate deposits queue at a screened Reserve; tree capacity and slot reuse are stated; and the event, error, registrar and deploy notes are made exact. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core fa7b92d binds each signature to its signer, the signer's USERS epoch, the leaf nonce and a per-leaf revocation count, under domain version 3. revoke(reserve, leaf) cancels every outstanding signature for the leaf. The typehash is recomputed with cast keccak. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…emoval freeze Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
refundTo is paid only after rejection and can be changed while pending, the constructor takes the guardian, a users root cannot return to zero, and notes in different trees are merged through a spend with a dummy input. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ocker Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The registrar entry no longer names the removed registration count, the owner can unpause inflows directly, the deploy transfer condition and permission epoch are stated exactly, and a rejected deposit is said to go to refundTo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shramee
force-pushed
the
feat/contracts-docs
branch
from
November 27, 2026 03:54
a68588b to
0c95fe2
Compare
This branch was successfully deployed
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 #13 (
feat/landing-design).What
Eight detailed pages under Contracts, linked from the section overview with
RuledIndex, ordered bysidebar.order:(owner, verifier, guardian)constructor; bothdepositoverloads, the checks in order, return values, the asset list and minimum; screening, rejection, reclaim (pending to the depositor only, rejected torefundTo) andsetDepositRefundTo;handleZkpchecks and effects in order;registerReserveand the four Reserve setters; viewsdeposit/withdraw; the admin and two-step handover; the four roles with theirbytes32values, silent no-op grants and revokes, and the per-role permission epoch;addUser/removeUserand the leaf nonce; the removal freeze; the auditor key; screener and asset listsignTypedDatasample;registerUserchecks; what voids a signature (leaf nonce, per-leaf revocation count, signer epoch, deadline); ECDSA vs ERC-1271;revoke(reserve, leaf)ChamberVerifier's interface and how it is replaced; core's exit-spend deploy blocker;Deploy.s.solenv vars, the development-chain check and production validation (Safe owner with threshold ≥ 2, guardian required), constructor-time ownership and broadcast order, dev fixtures; post-deployment steps; toolchainOne CSS addition to
diagram.css: two modifiers on.mist-arch__proof(a closing row under the Reserves, and chip-over-label stacking at phone width), used by the new diagram only.Sources
Every signature, parameter, event, revert string and constant was checked against the Solidity at core
fa7b92d(contracts/src/{Chamber,Reserve,IChamber,ManagerSigRegistrar,ChamberVerifier}.sol,lib/Merkle4.sol,lib/Poseidon.sol,script/Deploy.s.sol,foundry.toml,contracts/README.md) and the inherited OpenZeppelin code.fa7b92dre-lands core #192 as #194 on top ofcf1413d; this PR follows it. Rationale followsspec/decisions.md(DEC-10, DEC-14 to DEC-17). Spec PR mistcash/mist#115 describescf1413d, so it does not yet cover #194; the pages follow the code. Role hashes and the EIP-712 typehash were computed withcast keccak.No deployed addresses are listed and no audit is claimed. A maximum transaction amount and exit spends are marked Planned.
How it was checked
npm ci && npm run check && npm run copyrules && npm run build && npm run linkcheck: all green, after the rebase onto feat(docs): landing design and EVM information architecture #13. In-page anchors checked against the built HTML.cf1413dand again for thefa7b92dupdate; findings fixed before pushing.🤖 Generated with Claude Code