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

Fix Starknet event ID calculation #1138

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Conversation

m-kus
Copy link
Member

@m-kus m-kus commented Nov 20, 2024

Starknet event id is a truncated Keccak hash of the event name, where only lowest 250 bits (was 248 before the fix) are kept.
https://docs.starknet.io/architecture-and-concepts/cryptography/hash-functions/#starknet_keccak

@droserasprout droserasprout added the bug Something isn't working label Nov 21, 2024
@droserasprout droserasprout modified the milestones: 8.1.1, 8.1.2 Nov 21, 2024
@droserasprout droserasprout merged commit 9d96252 into next Nov 22, 2024
4 of 7 checks passed
@droserasprout droserasprout deleted the fix/sn-keccak-truncated branch November 22, 2024 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants