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

contracts-bedrock: sequencer-enforced invariants #10791

Closed

Conversation

sam-iamm
Copy link
Contributor

@sam-iamm sam-iamm commented Jun 10, 2024

Description

Implements the (optional) L1 -> L2 message validation hooks solution to enable sequencer-enforced invariants.

Sequencer-enforced invariants design doc: ethereum-optimism/design-docs#30

Tests

To-do - will add tests if the design is approved.

@sam-iamm sam-iamm changed the title feat: sequencer-enforced invariants contracts-bedrock: sequencer-enforced invariants Jun 10, 2024
@tynes
Copy link
Contributor

tynes commented Jun 11, 2024

Definitely not including this in the OP Stack. It adds way too much complexity into the bridge

@tynes tynes closed this Jun 11, 2024
@tynes
Copy link
Contributor

tynes commented Jun 11, 2024

I appreciate you opening this PR, definitely recommend doing a design doc first to get buy in before doing any implementation to save time. Left some comments on ethereum-optimism/design-docs#30

RELAY_RESERVED_GAS + RELAY_GAS_CHECK_BUFFER
+ _relayMessageValidatorGas(messageValidator, uint64(_message.length))
) || xDomainMsgSender != Constants.DEFAULT_L2_SENDER
|| !_isRelayMessageValidated(messageValidator, _nonce, _sender, _target, _value, _message)
Copy link
Contributor

Choose a reason for hiding this comment

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

This part of the diff is particularly not great to have

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 this pull request may close these issues.

None yet

3 participants