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(protocol): encode proposer address in L2 block header #18770

Draft
wants to merge 1 commit into
base: pacaya_fork
Choose a base branch
from

Conversation

dantaik
Copy link
Contributor

@dantaik dantaik commented Jan 15, 2025

Blocks, before being proposed on L1, are now shared by the current proposer in Taiko's P2P network. Prior to this PR, there was no way to verify whether an L2 block originated from the current proposer simply by examining the block itself.

However, I realized that this PR does not fully address the issue: a malicious node could still broadcast a block using the current proposer's address in the header.

As a result, this PR will not be merged.

@davidtaikocha It seems in geth, the block must be signed by the preconfer before being broadcasted to p2p.

@dantaik dantaik requested a review from davidtaikocha January 15, 2025 02:20
Copy link

feat(protocol): encode proposer address in L2 block header

Generated at commit: eeb1626a54422c35dda683f6e3deae28b2307df1

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
3
3
0
10
40
56
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@cyberhorsey
Copy link
Contributor

Yes, the block must be signed and then the pubkey extracted from the message pulled from the p2p then verified that it is signed by a valid preconfer from the registry contract.

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

Successfully merging this pull request may close these issues.

3 participants