Module Evm_node_lib_dev_encoding.Meta_block

A Tezos X meta-block groups together the per-runtime block hashes that share the same L2 level.

type hashes = {
  1. evm : Ethereum_types.block_hash;
  2. michelson : Tezos_base.TzPervasives.Block_hash.t option;
}

Per-runtime block hashes.

michelson is None when the Michelson runtime has not been activated yet. Michelson block hashes use the regular Tezos b58check encoding, while EVM block hashes use the Ethereum hexadecimal encoding.

type t = {
  1. level : Ethereum_types.quantity;
  2. hashes : hashes;
}
type block_hash_identifier =
  1. | Evm of Ethereum_types.block_hash
  2. | Michelson of Tezos_base.TzPervasives.Block_hash.t

A block hash identifying a meta-block: either an EVM hash (hex) or a Michelson hash (b58check). The JSON encoding accepts a string and dispatches based on its format.