Make your dApp Cross-Chain able with Axelar CGP&CTP

TheCryptoLich
3 min readJan 9, 2022

Cross-chain application going one of the blazing field due to several network coming up in last year. One of the pain point of dApp builder that they need to select which chain to develop first in several conditions such as Users, Ecosystem, Builder Expertise and the application itself (speed,gas fee, etc..)

Blockchain Router for Cross-chain [Wang, et al. 2017]

To make you dApp supported several chain is the nightmare for dApp builder. Luckily for EVM compatible networks are easier. in the other hand, Non-EVM are the real kick-in. To make your dApp interconnect between each chain possibly to do with blockchain router that connected to another sub-chain like Wang was introducted in 2017.

Blockchain Router used for connect to each chain. To check each transaction that occured and made another transaction in another sub-chain. In this case, inter-operatibility with blockchain is possible.

However, Their concept are implemented as some roll-up technique or side-chain technology. One of the example is Axelar Network which is designate for the cross-chain routing.

Axelar Network

Axelar Network including two core products e.g. Cross-Chain Gateway Protocol (CGP) and Cross-Chain Transfer Protocol (CTP)

Cross-Chain Gateway Protocol

CGP is the gateway protocol and routing mechanism between many applications. which supported State syncronization and Asset Transfer.

Account on the other chains is the account that used by Axelar Network. To make Cross-chain Gateway Protocol Axelar working, the network should have accounts on the other chains which controlled by Axelar by separated into 2 cases including

  1. Bitcoin and other non-smart contract chains. Axelar validators create ECDSA key and control ECDSA account. This account will use for user to deposit.
  2. Threshold bridge account on chains with smart contracts. Axelar validators create a threshold ECDSA or ED25519 key and denote this key by Axelar. This key control a smart contract acctount and any application on Axelar can query this smart contract to learn address of this key.
Component Diagram of Axelar Network [Axelar Whitepaper, 2021]

State syncronization using to post information of the source into the destination network e.g. The transaction status in Polygon Network send to Cosmos Network

Asset Transfer using to transfer digital asset from source network to destination network e.g. sending USDT from Polygon Network to Cosmos Network

Cross-Chain Transfer Protocol (CTP)

Cross-Chain Transfer Protocol is the application-level protocol. The front-ends interact with user’s wallet to doing transaction and calling CTP queries to HTTP/HTTPS with GET/POST methods that execute the CGP layer then return result to the users.

Application developer can host their application and integrate their smart contract with Axelar bridge account to execute the CTP (The data would collected and managed by validator and sent to Axelar Network) when data come across chain it’s can use to trigger another smart contract (in another chain) or just read data from another chain to make criteria in smart contract in current chain (e.g. read interest rate in Polygon to execute mint function in Cosmos)

References

[1] Wang, Hui, Yuanyuan Cen, and Xuefeng Li. “Blockchain router: a cross-chain communication protocol.” Proceedings of the 6th international conference on informatics, environment, energy and applications. 2017.

[2] Axelar Network. “Axelar Network: Connecting Applications with Blockchain Ecosystems.” Axelar Network Whitepaper. 2021.

--

--

TheCryptoLich

Crypto Technology Enthusiastic DeFi and Blockchain Related Technology Lover NFT Digital Artist 1/1 Mint Check NFT : app.nafter.io/profile/lichchain