Skip to content

fix: search for all note nonces instead of just the one for the note index (backport #21438)#21440

Merged
nventuro merged 2 commits into
backport-to-v4-next-stagingfrom
claudebox/backport-21438-v4-next
Mar 12, 2026
Merged

fix: search for all note nonces instead of just the one for the note index (backport #21438)#21440
nventuro merged 2 commits into
backport-to-v4-next-stagingfrom
claudebox/backport-21438-v4-next

Conversation

@AztecBot

Copy link
Copy Markdown
Collaborator

Summary

Backport of #21438 to v4-next.

Cherry-pick applied cleanly with no conflicts.

Changes

  • Search all possible note hash indices for nonces instead of just the one corresponding to the note hash index
  • Add bvec_filter helper for filtering BoundedVec
  • Add tests for misaligned nonces, out-of-bounds indices, and duplicate unique note hashes

ClaudeBox log: https://claudebox.work/s/f0603f16b3f1c566?run=1

…index (#21438)

We now search in all indices instead of just the one for the
corresponding note hash.
@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 12, 2026
@nventuro nventuro marked this pull request as ready for review March 12, 2026 18:01
@nventuro nventuro enabled auto-merge (squash) March 12, 2026 18:02
@nventuro nventuro merged commit dc70239 into backport-to-v4-next-staging Mar 12, 2026
13 checks passed
@nventuro nventuro deleted the claudebox/backport-21438-v4-next branch March 12, 2026 18:21
ludamad pushed a commit that referenced this pull request Mar 12, 2026
…index (backport #21438) (#21440)

## Summary
Backport of #21438
to `v4-next`.

Cherry-pick applied cleanly with no conflicts.

## Changes
- Search all possible note hash indices for nonces instead of just the
one corresponding to the note hash index
- Add `bvec_filter` helper for filtering `BoundedVec`
- Add tests for misaligned nonces, out-of-bounds indices, and duplicate
unique note hashes

ClaudeBox log: https://claudebox.work/s/f0603f16b3f1c566?run=1

---------

Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants