aztec-nr - noir_aztec::protocol::blob_data

Function create_block_end_marker

pub fn create_block_end_marker(global_variables: GlobalVariables, num_txs: u16) -> Field

Create the field that marks the end of a block. It's a concatenation of: BLOCK_END_PREFIX | timestamp | block_number | num_txs

BLOCK_END_PREFIX occupies the bytes up to the point where timestamp begins. timestamp occupies 8 bytes. block_number occupies 4 bytes. num_txs occupies 2 bytes.