Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Constrain chainid on L1 contract #827

Closed
Tracked by #824
LHerskind opened this issue Jun 13, 2023 · 0 comments · Fixed by #900
Closed
Tracked by #824

feat: Constrain chainid on L1 contract #827

LHerskind opened this issue Jun 13, 2023 · 0 comments · Fixed by #900
Assignees

Comments

@LHerskind
Copy link
Contributor

LHerskind commented Jun 13, 2023

Part of #824

The L1 state transitioner contract should constrain the chainid to always be equal that which is returned by block.chainid. The value is desirable to battle possilbe replay attacks if a version of the Aztec rollup exists on both Ethereum and another L1, but have the same "version" on both.

Should be included in the l2 block as well to make it clear where the block is expected to "hit".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant