Skip to content

Conversation

@AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Feb 4, 2026

BEGIN_COMMIT_OVERRIDE
feat: add Cloudflare R2 as primary CRS host with S3 fallback (#20081)
fix: (AES audit) add redundant range constraints when AES, ACIR opcode is not generated by Noir (#20125)
END_COMMIT_OVERRIDE

johnathan79717 and others added 2 commits February 4, 2026 11:10
## Summary
- Adds Cloudflare R2 endpoint (`crs.aztec-cdn.foundation`) as primary
CRS download source
- Falls back to existing AWS S3 bucket (`crs.aztec.network`) on failure
- Reduces costs (R2 has no egress fees) and improves reliability

## Changes
- **C++**: Added fallback logic in `get_bn254_crs.cpp` with HTTPS
support for R2
- **TypeScript**: Added `fetchWithFallback` helper in `net_crs.ts`
- **Shell**: Added `download_with_fallback` function in `bootstrap.sh`
and `download_bb_crs.sh`
- **Tests**: Added fallback tests for both C++
(`CrsFactory.Bn254Fallback`) and TypeScript

## Test plan
- [x] C++ `srs_tests` pass (including new `Bn254Fallback` test)
- [x] TypeScript `net_crs.test.ts` passes (tests primary download and
fallback)
- [x] Shell script download verified manually

Resolves AztecProtocol/barretenberg#1609
…e is not generated by Noir (#20125)

add redundant range constraints when AES, ACIR opcode is not generated
by Noir

---------

Co-authored-by: sergei iakovenko <105737703+iakovenkos@users.noreply.github.com>
Co-authored-by: ledwards2225 <98505400+ledwards2225@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: AztecBot <tech@aztecprotocol.com>
@johnathan79717 johnathan79717 force-pushed the merge-train/barretenberg branch from abef0ec to 4e1231c Compare February 4, 2026 11:10
Copy link
Collaborator

@ludamad ludamad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Auto-approved

@AztecBot AztecBot added this pull request to the merge queue Feb 4, 2026
@AztecBot
Copy link
Collaborator Author

AztecBot commented Feb 4, 2026

🤖 Auto-merge enabled after 4 hours of inactivity. This PR will be merged automatically once all checks pass.

Merged via the queue into next with commit 22cccc9 Feb 4, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants