AztecProtocol / aztec-packages

Apache License 2.0
192 stars 194 forks source link

L1 <> L2 messages need to be scoped to a particular version of Aztec #359

Closed joeandrews closed 1 year ago

joeandrews commented 1 year ago

Portal contracts need to define which version of Aztec, they can consume messages from.

Example

Lets say a portal contract manages Dai deposits. A user deposits 1,000 Dai to the portal contract that adds a message to the L1 > L2 Message Box.

The rollup implementation is then upgraded to support a less secure hash function / or some other change the user / dApp developer does not agree with.

In order to protect against the message being consumed in the newer version, the message needs to be scoped to a version.

LHerskind commented 1 year ago

Currently the implementation is assuming one rollup due to the upcoming upgrade RFP this have not been changed yet, as it depends on the mechanism chosen.

LHerskind commented 1 year ago

Idea to limit based on versioning that is enforced fully on L1 (no circuit changes).