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: download and store block commitment signatures #1506

Merged
merged 7 commits into from
Nov 8, 2023

Conversation

kkovaacs
Copy link
Contributor

@kkovaacs kkovaacs commented Nov 8, 2023

As a temporary measure for helping the P2P effort until proper consensus is deployed on the network Starknet has added the concept of block commitment signatures provided by the gateway. The idea is that those signatures are propagated along with block and state update data over P2P and thus nodes receiving that data can verify that the data they've received matches the data produced by the sequencer. For more details please check the community forum post.

This PR is the first step towards that direction: it implements downloading and storing the signatures in our database but does not add it to the P2P implementation yet (nor does it implement the actual verification).

@kkovaacs kkovaacs marked this pull request as ready for review November 8, 2023 10:10
@kkovaacs kkovaacs requested review from pierre-l and a team as code owners November 8, 2023 10:10
crates/storage/src/params.rs Show resolved Hide resolved
crates/pathfinder/src/state/sync/l2.rs Show resolved Hide resolved
crates/common/src/lib.rs Show resolved Hide resolved
@kkovaacs kkovaacs merged commit 6f25ab5 into main Nov 8, 2023
7 checks passed
@kkovaacs kkovaacs deleted the krisztian/fetch-block-signatures branch November 8, 2023 14:25
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.

2 participants