This document describes the current messaging protocol between domains in a trusted code environment. This protocol describes messaging between the consensus chain and any domain and between two domains.

Primitives

High-Level Workflow

The following describes the generic message from one domain to another. This message could be a protocol message to initiate or close channel connection or an endpoint specific message through an established Channel. In either case, the base message passing remains same:

  1. User submits a transaction with the message and the required fees. The funds are locked in users account.
  2. Message with an assigned nonce is added to the outbox of src_chain_id with a runtime event issued.