Repository navigation
docs(circuits): detailed pages for PrimaryTransactionCircuit - #14
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
shramee
force-pushed
the
feat/circuits-docs
branch
from
November 27, 2026 03:54
9c6f45e to
ed8aba5
Compare
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>
Count the width-4 uses correctly, say that snapshot gadget figures include the wrapper's assertion, scope the custody rule and note that no public input carries the Chamber ID, point zkState root acceptance at the history cutoff, and describe the setup and drift checks without process claims. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The circuit changed by one comment, so the constraint figures stand: the snapshot matches a fresh compile at fa7b92d. The messaging page now says a removed member is frozen like an unregistered holder, and that the Chamber refuses a users root returning to zero. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shramee
force-pushed
the
feat/circuits-docs
branch
from
November 28, 2026 23:03
ed8aba5 to
edea773
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
Six detailed pages under Circuits, linked from the section overview with
RuledIndex, ordered bysidebar.order:PrimaryTransactionCircuit.Define, the twoauth_donemodes, withdrawal binding, and what the circuit leaves to the Chamber, including that no public input carries the Chamber IDPublicParamsfield and meaning; field and address encoding; which constraint binds each input; what one spend reveals to an observer and to a key holderFold2, a table of every hash in useHM4, prover-ordered insertion (hint bits constrained only to be boolean), the 30-element proof, position independence and pass-through, the three trees and their capacities, costprivateTxKey, the six commitment slots and their fold, how the Chamber files them, decryption, limits, and that a removed member is frozen like an unregistered holdergroth16_bn254.Setupwith no MPC ceremony, artifacts, and what changing the circuit involvesThree diagrams (spend shape, one Merkle level, the keystream) use the existing diagram grammar. No new CSS.
Sources
Every name, formula and number was checked against core
fa7b92d(circuits/src/primary.go,witnesses.go,gadgets/gadgets.go,lib/{hash,merkle,note},build/.constraint-snapshot,scripts/gen,contracts/src/Chamber.sol,ChamberVerifier.sol,lib/Merkle4.sol). Fromcf1413dtofa7b92dthe circuit changed by one comment line; the snapshot, the circuit source and the verifier are byte-identical. Rationale followsspec/01, 03, 04, 05 anddecisions.md; where the spec text describes older core, the pages follow the code.Numbers are measured, not written from intent:
PrimaryTransactionCircuit= 17,318 constraints and the gadget costs are the committed snapshot.TestConstraintSnapshotMatchesCompileandTestVerifierPublicInputCountMatchesCircuitwere run against exports of bothcf1413dandfa7b92d, and pass on both (snapshot matches a fresh compile, 14 public inputs). The pages say that each snapshot gadget figure includes its wrapper circuit's one equality assertion. The Poseidon2 S-box degree (5) was read from gnark-crypto's BN254poseidon2.go.Planned items (exit spends, sequential identifiers, relayer fee leg, the multi-party ceremony) 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