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

P2P: handle StateDiffsResponse_DeclaredClass #2031

Open
kirugan opened this issue Aug 7, 2024 · 1 comment
Open

P2P: handle StateDiffsResponse_DeclaredClass #2031

kirugan opened this issue Aug 7, 2024 · 1 comment
Assignees
Labels

Comments

@kirugan
Copy link
Contributor

kirugan commented Aug 7, 2024

We don't handle *spec.StateDiffsResponse_DeclaredClass messages right now. See p2p/sync.go:514

@AnkushinDaniil AnkushinDaniil self-assigned this Aug 7, 2024
@AnkushinDaniil
Copy link
Contributor

The StateDiffsResponse_DeclaredClass message is necessary because it provides a more secure and reliable way to retrieve class hashes, especially for Cairo 0 classes, where verification without state diffs is impossible. After the spec update it's possible to validate the class hash before downloading large amounts of information. It's still unclear how to use declaredClass in stateDiffResponse.

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

No branches or pull requests

3 participants