Skip to content

chore: Accumulated backports to v4#20980

Open
AztecBot wants to merge 5 commits intov4from
backport-to-v4-staging
Open

chore: Accumulated backports to v4#20980
AztecBot wants to merge 5 commits intov4from
backport-to-v4-staging

Conversation

@AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Feb 27, 2026

BEGIN_COMMIT_OVERRIDE
fix(aztec-nr): account for AES PKCS#7 padding in message plaintext length (#20840)
feat: remove epk sign from message payload (#20926)
chore: increase mainnet local ejection threshold to 190k (#20884)
END_COMMIT_OVERRIDE

…ngth (#20840)

## Summary

- Fixes index-out-of-bounds when using notes with arrays by accounting for AES PKCS#7 padding expansion (16 bytes) when computing `MESSAGE_PLAINTEXT_LEN`
- Updates `MAX_NOTE_PACKED_LEN` (9 -> 8) and `MAX_EVENT_SERIALIZED_LEN` (11 -> 10) in both Noir and TypeScript to match the corrected capacity
- Adds boundary tests for max-size and oversized messages, notes, and encryption plaintexts

Fixes F-336
Fixes #20737
This frees up one byte of capacity, but more importantly it reduces the leakage in the logs as they'll no longer contain a byte that is either 0 or 1.
## Summary
- Increases the mainnet `AZTEC_LOCAL_EJECTION_THRESHOLD` from 162,000 TST to 190,000 TST in `network-defaults.yml`.

## Test plan
- [ ] Verify generated config files reflect the updated threshold after regeneration
AztecBot and others added 2 commits February 27, 2026 20:06
…ts (v4) (#20982)

**Problem**: The `mainnet_compatibility.test.ts` test checks that
`protocolContractsHash` matches a hardcoded mainnet value. We missed
protocol contracts while pinning protocol circuits.

**Solution**: 
- When `pinned-protocol-contracts.tar.gz` exists in the
`noir-contracts/` directory, the build extracts pre-compiled protocol
contract artifacts and skips compiling them
- Adds `./bootstrap.sh pin-protocol-contracts` command to build protocol
contracts and create the tarball
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.

5 participants