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

Design Scroll wire protocol #1

Open
Tracked by #9
frisitano opened this issue Dec 24, 2024 · 2 comments
Open
Tracked by #9

Design Scroll wire protocol #1

frisitano opened this issue Dec 24, 2024 · 2 comments
Assignees

Comments

@frisitano
Copy link
Collaborator

Overview

We need to define a P2P gossip protocol that allows the rollup-node to follow the unsafe scroll rollup chain tip. This should cover both gossip topics and request-response support. Insights from the Optimism p2p protocol can be found here.

@frisitano frisitano added this to Reth Dec 27, 2024
@frisitano frisitano mentioned this issue Dec 30, 2024
6 tasks
@frisitano
Copy link
Collaborator Author

frisitano commented Dec 31, 2024

The following is an initial proposal for the scroll wire protocol. We will keep it simple and minimalist in the first instance and can extend as we require additional functionality.

Topic Naming

Topics will be named using the following standard

scroll/chain_id/topic_version/name

Gossip Topic

We will have a single topic which is used to gossip blocks:
scroll/chain_id/<topic_version>/blocks

In scroll we use V1 blocks and they will be encoded as:

Block {
signature: secp256k1 sequencer signature,
payload: SSZ-encoded execution payload
}

@frisitano frisitano self-assigned this Jan 2, 2025
@Thegaram
Copy link
Contributor

Initial test implementation was added in 6c8c70c.

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

No branches or pull requests

2 participants