Skip to content

feat(AggLayer claim e2e #1): Move padding to the end of NoteStorage for CLAIM note#2405

Merged
mmagician merged 3 commits intoagglayer-newfrom
mmagician-padding-end-of-claim
Feb 14, 2026
Merged

feat(AggLayer claim e2e #1): Move padding to the end of NoteStorage for CLAIM note#2405
mmagician merged 3 commits intoagglayer-newfrom
mmagician-padding-end-of-claim

Conversation

@mmagician
Copy link
Collaborator

This is in preparation for byte-packing (PR coming), which will work off the assumption that aside from the first leafType field element (unpacked), all the others are already packed (i.e. will use all its packed bytes in the hash computation).
If we have padding in between elements, this no longer holds.

This PR comes with one less-than-ideal consequence, namely that we can no longer load the asset amount with 2x mem_loadw_be but have to load the individual elements, since the asset amount address is no longer word-aligned.

@mmagician mmagician added the agglayer PRs or issues related to AggLayer bridging integration label Feb 5, 2026
@mmagician mmagician requested a review from Copilot February 5, 2026 09:12

This comment was marked as resolved.

Base automatically changed from mmagician-fix-compute-ger to agglayer-new February 6, 2026 13:35
@mmagician mmagician force-pushed the mmagician-padding-end-of-claim branch from a9c26a1 to c74188c Compare February 8, 2026 21:08
@mmagician mmagician changed the title feat(AggLayer) : Move padding to the end of NoteStorage for CLAIM note feat(AggLayer claim e2e #1): Move padding to the end of NoteStorage for CLAIM note Feb 8, 2026
@@ -1,5 +1,9 @@
pub mod asset_conversion;
mod bridge_in;
// TODO: Uncomment this when https://github.com/0xMiden/miden-base/issues/2397 is ready.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is re-enabled in the last PR of the series in chore: re-enable bridge-in tests

Comment on lines +52 to +56
/*
// TODO: Uncomment this when https://github.com/0xMiden/miden-base/issues/2397 is ready.
// The mainnet exit root is hardcoded to pass the current test (i.e. we set the expected mainnet
// root to whatever the current implementation computes), and changing any impl. details will break
// the test, forcing us to artificially change the expected root every time.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this test data is eventually removed in 034d539

@mmagician mmagician requested a review from bobbinth February 8, 2026 22:02
@mmagician mmagician added the pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority label Feb 9, 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 and makes sense.

@mmagician mmagician merged commit 0d9d083 into agglayer-new Feb 14, 2026
16 checks passed
@mmagician mmagician deleted the mmagician-padding-end-of-claim branch February 14, 2026 16:56
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 pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants