Skip to content

feat(AggLayer): implement verify_leaf#2295

Merged
mmagician merged 5 commits intommagician-verify-leaf-bridgefrom
mmagician-verify-leaf
Jan 23, 2026
Merged

feat(AggLayer): implement verify_leaf#2295
mmagician merged 5 commits intommagician-verify-leaf-bridgefrom
mmagician-verify-leaf

Conversation

@mmagician
Copy link
Collaborator

@mmagician mmagician commented Jan 16, 2026

This PR builds on top of #2288.

To complete the functionality here we also need verify_merkle_proof implemented, it's currently stubbed out.

closes #2277

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

copied from #2262, they'll eventually be merged

@mmagician mmagician marked this pull request as ready for review January 16, 2026 17:45
@mmagician mmagician added the agglayer PRs or issues related to AggLayer bridging integration label Jan 21, 2026
Copy link
Contributor

@partylikeits1983 partylikeits1983 left a comment

Choose a reason for hiding this comment

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

Looks good, I think once latest agglayer is merged, crates/miden-testing/tests/agglayer/test_utils.rs will already be available.

@mmagician mmagician requested a review from bobbinth January 21, 2026 15:24
@mmagician mmagician merged commit b31afb1 into mmagician-verify-leaf-bridge Jan 23, 2026
16 checks passed
@mmagician mmagician deleted the mmagician-verify-leaf branch January 23, 2026 09:04
mmagician added a commit that referenced this pull request Feb 1, 2026
* feat: implement verify_leaf_bridge

* chore: stack is empty, can swap instead of pad

* chore: load leaf first, proof later

* feat(AggLayer): implement `verify_leaf` (#2295)

* feat: verify_leaf stubbed

feat: fill some TODOs

* chore: test global index processing

* chore: update comments

* self review

* changelog

* docs: add comment about exit root pointer locations in compute_ger

Addresses PR feedback: clarify that mainnet exit root is at exit_roots_ptr
and rollup exit root is at exit_roots_ptr + 8.

Co-authored-by: marti <marti@hungrycats.studio>

* refactor: remove unused verify_claim_proof procedure

This procedure has been replaced by verify_merkle_proof and is no longer used.

Co-authored-by: marti <marti@hungrycats.studio>

* style: add section headers for better organization in bridge_in.masm

Addresses PR feedback: organize the file with clear section headers for:
- Constants (storage slots and memory layout)
- Errors
- Public interface procedures
- Helper procedures

Co-authored-by: marti <marti@hungrycats.studio>

* fix: get leaf value is exec, should not truncate stack

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: add padding to stack comments

* chore: make padding explicit for update ger

* chore: update_ger proc is call not exec

* chore: assert_valid_ger is not public

* docs: make panics explicit; add verify steps

* chore: fix indent for inline comment

* chore: re-org procedures: pub/helper

* chore: Word prefer empty over default

* changelog: move entry 0.13 -> 0.14

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agglayer PRs or issues related to AggLayer bridging integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants