juno icon indicating copy to clipboard operation
juno copied to clipboard

Block hash calculation

Open tkstanczak opened this issue 3 years ago • 0 comments

Add block hash calculation:

BLOCK HASH A block hash is a hash of the block’s header elements.

Specifically:

pedersen_hash( parent_block_hash,block_number, new_global_root,sequencer, creation_time, transaction_commitment, transaction_count event_commitment, event_count, protocol_version, extra_data ) In StarkNet Alpha, each component that is not yet implemented is replaced with 0.

The code for the block hash generation can be found here.

tkstanczak avatar Jan 29 '22 15:01 tkstanczak