What is Omnity
Omnity is an omni-chain interoperability protocol built by Omnity Network on the Internet Computer (IC) specially designed to fit the modular blockchain landscape. It is implemented by a set of smart contracts deployed on IC.
High-level Design
- E : settlement chains. currently we have bitcoin(supports both runes and brc20) and icp as the settlement chains.
- S : execution chains. currently we have the icp, bevm, bitlayer, b² network, x layer, merlin, bob, rootstock, bitfinity, ailayer, core, ethereum, osmosis and solana as the execution chains.
- Ticket: a transaction message.
- Hub: a canister (smart contract) on icp that handles chain and token registration and ticket (transaction) execution, and it also lists settlement chains and execution chains.
- Customs: the customs is where the assets are listed, each custom represents a settlement chain. the customs generates transfering tickets.
- Route: each route represents a execution chain. the routes generates redeeming tickets.
Doge Customs
Transfer
- Cross-chain users input Destination information (target_chain, receiver), obtain the Doge Chain payment address (Pay Address), and complete the transfer.
- Call the generate ticket interface, input tx_hash and Destination information, verify the transaction and generate a ticket.
- Doge Customs needs to maintain the utxo set corresponding to the Destination. (Map<Destination, utxo set>). When using utxo later, knowing the Destination information will indicate which public-private key pair to use for signing.
Redeem
Open Source
Check code in this pull request: