Skip to content

XL tier: prove email bodies up to 100 KB (CLI, ~14 GB RAM) - #24

Merged
Divide-By-0 merged 3 commits into
mainfrom
stack/05-xl-tier-v2
Sep 30, 2026
Merged

Divide-By-0 merged 3 commits into
mainfrom
stack/05-xl-tier-v2

Conversation

@Divide-By-0

Copy link
Copy Markdown
Member

Stacked on #23 (merge #21, then #23, then this).

Adds the XL tier: email bodies up to 100,352 bytes (header 4 KB) for 1024- and 2048-bit keys. It is a CLI-only tier, sized at 2^23 gates.

Changes

Memory (measured)

Peak memory is the kernel's lifetime physical footprint of the native bb process (/usr/bin/time -l), on an 18-core Mac:

tier write_vk prove
large 6.9 GB 7.4 GB (34 s)
xl 13.5 GB 13.7 GB (70 s)
  • XL needs a machine with 16 GB or more. It can't run in a browser (4 GB WASM cap).
  • An earlier draft said 8.5 GB; that was a sampling artifact, fixed in e47cdd8.

Verification

  • yarn test: 19/19.
  • Private corpus of 132 real emails, proved on a separate Linux box (12 cores, 31 GB):
    • 76 prove and verify locally (55 before this stack); 13 of them are XL-only.
    • All 7 emails over 100,352 bytes fail with a clear "too long" error.
    • The other 49 failures are unrelated to this tier:
      • 48 fail DKIM before the circuit (altered emails, rotated keys, no signature);
      • 1 is a Fastmail email with a folded bh=.
  • A real 87.6 KB receipt proved in ~104 s and verified with a DNS key match.

🤖 Generated with Claude Code

Divide-By-0 and others added 3 commits September 29, 2026 06:09
…tack/04 circuit

Gates: 1024-bit 8,043,970, 2048-bit 8,059,305 (96.1% of 2^23).
nargo 1.0.0-rc.3, bb 5.0.0. CLI-only (browser: false).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- CLI pinned to 8 v2 tiers at 530980c (incl. XL).
- bb.js 5's native backend waits a hardcoded 5 s for bb's socket; under
  load Barretenberg.new failed spuriously, so retry up to 4 times with
  backoff for prove and verify.
- Docs: XL limits (100,352 B body, ~8.5 GB, 2-4 min); llms.txt limits
  corrected (large is 48,000 B).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured with /usr/bin/time -l on the native bb process: large 7.4 GB, XL 13.7 GB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 0fb64dbc-578e-49b4-a2bb-cd3ec8d3fa41

📥 Commits

Reviewing files that changed from the base of the PR and between 492eca0 and e47cdd8.

📒 Files selected for processing (11)
  • .agents/skills/redacted-circuit-maintenance/SKILL.md
  • README.md
  • public/llms.txt
  • skills/redacted-email-proof/SKILL.md
  • skills/redacted-email-proof/scripts/redacted.mjs
  • src/circuit-configs.json
  • src/circuit/target/email_mask_1024_xl.json
  • src/circuit/target/email_mask_2048_xl.json
  • src/circuit/target/vk/email_mask_1024_xl.vk
  • src/circuit/target/vk/email_mask_2048_xl.vk
  • src/lib.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Divide-By-0
Divide-By-0 changed the base branch from stack/04-signer-qp-simple to main September 30, 2026 02:01
@Divide-By-0 Divide-By-0 reopened this Sep 30, 2026
@Divide-By-0
Divide-By-0 merged commit 6067114 into main Sep 30, 2026
4 checks passed
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