26 for (
const auto&
event : events) {
27 bool exists =
event.leaf_value ==
event.msg_hash;
28 FF leaf_value_msg_hash_diff_inv =
exists ? 0 : (
event.leaf_value -
event.msg_hash).invert();
31 { { { C::l1_to_l2_message_tree_check_sel, 1 },
32 { C::l1_to_l2_message_tree_check_exists,
exists },
33 { C::l1_to_l2_message_tree_check_msg_hash,
event.msg_hash },
34 { C::l1_to_l2_message_tree_check_leaf_index,
event.leaf_index },
35 { C::l1_to_l2_message_tree_check_root,
event.snapshot.root },
36 { C::l1_to_l2_message_tree_check_leaf_value,
event.leaf_value },
37 { C::l1_to_l2_message_tree_check_leaf_value_msg_hash_diff_inv, leaf_value_msg_hash_diff_inv },