Skip to content

Conversation

@mmagician
Copy link
Collaborator

  • UPDATE_GER note script that carries two storage words [GER_LOWER[4], GER_UPPER[4]]
  • update_ger procedure on the bridge
  • two storage slots to store the lower & upper parts of the GER in the bridge
  • refactored create_bridge* helper functions
    • create_bridge_account_builder now uses both BridgeIn & BridgeOut components in a single account
    • BridgeOut doesn't need the miden::agglayer::bridge storage slot it used to have
    • instead, BridgeIn gets two storage slots to store single values (upper & lower limbs of the GER)

closes #2159
closes #2137

@mmagician
Copy link
Collaborator Author

We should also add a safety check similar to #2173 to ensure that only the bridge account can consume this note. I added a comment to the mentioned issue so that tackling it could address both UPDATE_GER and B2AGG note script checks.

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!

For now we just store the 256 bit GER in 2 slots, but not in an array just yet? Assuming will update this once the double word array PR lands: #2299

@partylikeits1983 partylikeits1983 added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Jan 23, 2026
@mmagician
Copy link
Collaborator Author

For now we just store the 256 bit GER in 2 slots, but not in an array just yet?

Exactly - but since we didn't store the GER at all until now, this should allow some minimal degree of testing against a real GER

@mmagician mmagician marked this pull request as ready for review January 23, 2026 17:54
@mmagician mmagician merged commit cfdf123 into agglayer Jan 24, 2026
17 checks passed
@mmagician mmagician deleted the mmagician-update-ger branch January 24, 2026 10:18
mmagician added a commit that referenced this pull request Jan 24, 2026
* feat: UPDATE_GER note outline

* feat: working update ger note

* chore: swap upper, lower GER parts

* lint: regen error file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agglayer no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants