Skip to content

contracts-bedrock: sequencer-enforced invariants#10791

Closed
sam-iamm wants to merge 24 commits into
ethereum-optimism:developfrom
Firewall-eng:feat/message-validation
Closed

contracts-bedrock: sequencer-enforced invariants#10791
sam-iamm wants to merge 24 commits into
ethereum-optimism:developfrom
Firewall-eng:feat/message-validation

Conversation

@sam-iamm

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

Copy link
Copy Markdown
Contributor

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

tynes commented Jun 11, 2024

Copy link
Copy Markdown
Contributor

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

tynes commented Jun 11, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

3 participants