Issue
Key points and detail design of next Darwinia Ethereum-chains message protocol · Issue #753 · darwinia-network/darwinia
Design
parity-bridges-common/README.md at main · darwinia-network/parity-bridges-common
Modification: pallet → smart contract (DVM)
Relevant code
darwinia-bridge-sol/contracts/bridge/contracts/common at message-protocol-v2 · darwinia-network/darwinia-bridge-sol
Notes
- Message lane is an unidirectional channel
- a single instance of messages module supports both outbound lanes and inbound lanes
- Messages module supports multiple message lanes
Summary
Specification of Message Protocol
Accommodate substrate-to-substrate message pallet to address the following three problems
- MMR proof is needed
- Confirmation is not supported
- Message model is specific
Components and Interaction with other Actors
- A set of smart contracts, the functionality of each one
- A sequence diagrams or a flow chart to describe the delivery process of messages
- Interface with apps and relayer
Engineering trade-off