Skip to content

feat!: improve L2ToL1MessageWitness API (backport #21231 to v4)#21462

Closed
AztecBot wants to merge 2 commits intobackport-to-v4-stagingfrom
claudebox/backport-l2-to-l1-message-witness-v4
Closed

feat!: improve L2ToL1MessageWitness API (backport #21231 to v4)#21462
AztecBot wants to merge 2 commits intobackport-to-v4-stagingfrom
claudebox/backport-l2-to-l1-message-witness-v4

Conversation

@AztecBot
Copy link
Collaborator

Summary

Backport of #21231 to v4.

The cherry-pick had conflicts in 2 files:

  • docs/docs-developers/docs/resources/migration_notes.md — new migration notes entries added after the ## TBD section (empty on v4, had other entries on next)
  • yarn-project/archiver/src/store/block_store.ts — added getEpochAtSlot to the import from @aztec/stdlib/epoch-helpers

Both conflicts were straightforward content additions with no semantic changes needed.

Changes from the original PR

  • computeL2ToL1MembershipWitness signature changed: users no longer need to pass epoch number, instead query with (message, txHash)
  • TxReceipt now includes epochNumber field
  • New getCheckpointsDataForEpoch API exposed on the node
  • Optional messageIndexInTx parameter for disambiguating duplicate messages

Commit structure

  1. Cherry-pick commit — original cherry-pick with conflict markers preserved
  2. Conflict resolution — resolved the 2 conflicts described above

No build fix commit was needed — the cherry-picked code compiles cleanly against v4.

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

nventuro and others added 2 commits March 12, 2026 23:09
Cherry-pick of a8b2277 from next. Conflicts left as-is for review.
Resolved conflicts in migration_notes.md (added new entries after TBD section)
and block_store.ts (added getEpochAtSlot import).
@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 12, 2026
@nventuro nventuro closed this Mar 13, 2026
@nventuro
Copy link
Contributor

In favor of #21463

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