The current Web3 ecosystem is ever-expanding, especially with the availability of new blockchains, each with its own utility. While adoption is perpetually increasing, the challenges of blockchain interoperability and scalability remain. With a scattered ecosystem full of blockchains taking a siloed approach, the need for networks to communicate becomes imperative. In the need of the moment, we have witnessed the rise of one of the biggest blockchain interoperability solutions — cross-chain bridges.
As the name suggests, a cross-chain bridge acts as a "bridge" between two blockchains, for example, bridging users from Ethereum to Base. Utilizing smart contracts to enable the transfer of tokens from one blockchain to another. But, is it the optimal solution for cross-chain interoperability?
Cross-chain bridges are software-based interoperability solutions that are designed to enable seamless interactivity between blockchains. Simply put, they employ smart contracts to enable the transfers of assets and data between different blockchain networks that would otherwise operate in isolation. These bridges enhance the utility available in the Web3 ecosystem, enabling both users and developers to leverage the strengths of various networks, resulting in a more interconnected and robust ecosystem.
Since blockchains work in silos instead of together, interconnectivity is limited. Each chain works on its own set of rules, consensus mechanisms and governance structures, making communication nearly impossible. This is why cross-chain bridges offer unparalleled benefits in promoting connectivity between blockchains, enabling both users and builders to make the most of the expanding Web3 ecosystem.
In Web3, just about every blockchain network to come after Bitcoin and Ethereum has their own decentralized cross-chain bridge to enable users to move funds onto their platform: there’s an Avalanche cross-chain bridge (AVAX), an Arbitrum cross-chain bridge (ARB), a Polygon cross-chain bridge (MATIC), a Base bridge, a Cosmos bridge, etc. Chances are, if a network is available to the public, you can bridge assets to it.
Here are some of the top benefits of cross-chain bridges
In general, cross-chain bridges utilize the wrapping model to move tokens across blockchains. To understand how a cross-chain bridge works, let us suppose Bob holds Token X on the Ethereum chain and wishes to use it on Polygon. However, it is impossible to use the token directly on Polygon, which is why Bob heads to a cross-chain bridge to ‘bridge’ his tokens across. Here’s how the traditional cross-chain bridge process works:
This diagram shows how a cross-chain bridge works. In the example here, the bridge uses a multisig contract to verify deposits on the source chain. The multisig requires a threshold number of signatures (say, three out of five) from multiple signers authorized to verify transactions.
This flow is basically how all conventional cross-chain bridges, including Axelar’s Satellite bridge, enable users to transfer their tokens across blockchains. However, instead of a multisig, Axelar security is based on proof-of-stake consensus.
This means Satellite, like any bridge or cross-chain application that integrates Axelar, verifies transactions using a dynamic validator set: anyone can accumulate stake and join the active validator set to verify cross-chain transactions; bad actors have their stake slashed. At present, Axelar has an active set of 75 validators.
Taking a step further than just bridging assets across, Axelar General Message Passing (GMP) makes interoperability easier and more accessible across chains. GMP enables developers to build on any Axelar-supported chain and call a function on any other connected chain to utilize the best features of multiple chains, thereby opening up endless possibilities. More on GMP below.
While cross-chain bridges bring forth multiple benefits, there are inherent limitations and risks that users need to be aware of. Here are some of the biggest limitations of cross-chain bridges:
Given the billions of dollars transferred via cross-chain bridges in 2022, it’s hardly a surprise that in 2022, Chainalysis noted that 69% of all funds stolen from DeFi have been from malicious parties exploiting bugs in security and hacking cross-chain bridges. Vitalik Buterin, co-founder of Ethereum, noted the risk inherent in cross-chain bridges back in January of 2022, saying, “you can't just pick and choose a separate data layer and security layer. Your data layer must be your security layer.”
Cross-chain bridges, even though extremely popular, are unscalable, sometimes risky and often difficult to use. As the ecosystem grows, the increasing number of blockchains, assets, platforms, use cases and users are only going to add to the complexities. It is safe to say that bridges alone are not the interoperability solution of the future.
However, combined with Axelar General Message Passing (GMP), bridges can enable applications and users to achieve seamless interoperability with utmost security. Developers can build on any Axelar-supported chain and call a function (both smart contracts at the application layer and functions built at the protocol layer) on any other connected chain to utilize the best features of multiple chains.
That means tokens can be bridged to another chain, along with instructions – for example to swap those tokens on a DEX on the destination chain, as in a cross-chain swap. In some cases, tokens can be left on their source chain, while logic on another chain passes messages with instructions for where to move them, as the Junkyard NFT game does, or for a loan to be issued, as Prime Protocol does. (Read the relevant case studies on Junkyard and Prime.)
GMP is extremely secure and relies on a permissionless validator set ( proof-of-stake). Here’s how Axelar GMP enables developers to seamlessly implement cross-chain transfers:
Hundreds of applications are already utilizing GMP, making interoperability easier. A prime example is Squid, a liquidity routing protocol built on Axelar. Squid allows any token to be swapped between blockchains in just a single click. Therefore, users can utilize their assets across DeFi, gaming, NFT and other platforms without worrying about the chain their assets are on.
The possibilities with GMP are endless as it powers hundreds of applications to achieve seamless cross-chain transfers across supported chains. With the recent integration of Cosmos, Axelar GMP connects 45 blockchains at this writing, including Avalanche, Base, Binance, Ethereum, Fantom, Linea, Moonbeam and Polygon.
Interested in using GMP and building with Axelar? Check out our docs on General Message Passing to know more, and reach out to us on Axelar Discord for any questions.