Skip to content

AggLayer: Store hash(GER) instead of the full GER #2341

@mmagician

Description

@mmagician

A couple of comments on these:

  • Do we actually need to store the full GER? it seems like, the claim note inputs can be used to compute the GER and then, we just need to check if the GER computed from the note matches the GER in the bride. For this, we just need to store GER commitment (i.e., RPO hash). This would mean we need only one storage slot.
  • Maybe we should make the storage slot into a map: hash(ger) |-> 1/0. This way, given a GER, we can compute its hash to reduce it to a single word, and then do a lookup to check if the GER is known or not.
  • It feels a bit odd that GER update functionality is in the bridge_in module. It probably would make sense to have a separate bridge_operator module for things like this.

Originally posted by @bobbinth in #2333 (comment)

Metadata

Metadata

Assignees

Labels

agglayerPRs or issues related to AggLayer bridging integration

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions