dispatch()
function on the origin chain, inserting the message into the Mailbox’s Merkle tree.Mailbox.process()
.recipient.handle()
to deliver the message.handle
function on the destination chain. For more information, refer to the handle function.
Why are outbound message IDs stored in the Merkle tree?
Outbound message IDs are stored in the Merkle tree to efficiently track and verify messages. This mechanism ensures validators can accurately detect and sign new messages as they are created.
Why do validators call MerkleTreeHook.latestCheckpoint()?
Validators use the MerkleTreeHook.latestCheckpoint()
function to determine when new transactions need to be indexed. This polling mechanism ensures validators can immediately start signing new messages without the need to backfill the entire tree.