You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ZKP circuits require very specific serialization of the MacroBlock.
In particular, it assumes the body is hashed as hash(pk_tree_root || body_bytes), where body_bytes is 64 bytes long.
The header is hashed as hash(network || version || block_number || intermediate_header_bytes || body_hash || history_root) where intermediate_header_bytes is exactly 4+8+32+32+32+96+32+32=268 bytes long.
We should create tests that make sure we don't change these constraints by accident.
The text was updated successfully, but these errors were encountered:
The ZKP circuits require very specific serialization of the
MacroBlock
.In particular, it assumes the body is hashed as
hash(pk_tree_root || body_bytes)
, wherebody_bytes
is 64 bytes long.The header is hashed as
hash(network || version || block_number || intermediate_header_bytes || body_hash || history_root)
whereintermediate_header_bytes
is exactly 4+8+32+32+32+96+32+32=268 bytes long.We should create tests that make sure we don't change these constraints by accident.
The text was updated successfully, but these errors were encountered: