NethermindEth / juno

Starknet client implementation.
https://juno.nethermind.io
Apache License 2.0
402 stars 170 forks source link

L1->L2 message hashes are 256 bit hashes #2160

Closed AnkushinDaniil closed 2 months ago

AnkushinDaniil commented 2 months ago

L1 Message Hash Parsing Fix

Problem

L1 message hashes (Keccak256 output) were parsed as felts, causing errors for some hash values that exceed the felt range.

Solution

This change ensures correct parsing and handling of Keccak256 hash outputs in L1 messages.

P2P protocol specification change: starknet-io/starknet-p2p-specs#46