Bridge to Hell?? Does Multichain's Past Doom Its Future?

Bridge to Hell?? Does Multichain's Past Doom Its Future?

By Michael @ CryptoEQ | CryptoEQ | 3 Feb 2023


You are reading an excerpt from our free but shortened abridged report! While still packed with incredible research and data, for just $20/month you can upgrade to our FULL library of 50+ reports (including this one) and complete industry-leading analysis on the top crypto assets. 

f335db6f2e4517432f34c0844de36a5d54528d4db563ba6c0ba03f49c1a7e6a0.png

Becoming a Premium member means enjoying all the perks of a Basic membership PLUS:

  • Full-length CORE Reports: More technical, in-depth research, actionable insights, and potential market alpha for serious crypto users
  • Early access to future CORE ratings: Being early is sometimes just as important as being right!
  • Premium Member CORE+ Reports: Coverage on the top issues pertaining to crypto users like bridge security, layer two solutions, DeFi plays, and more 
  • CORE report Audio playback: Don’t want to read? No problem! Listen on the go.

Multichain

Formerly Anyswap, Multichain is a cross-chain bridge aiming to enhance interoperability between disparate and previously siloed blockchains and dapps. Multichain created a simple wrapped bridge that works like Wormhole but also recently developed a cross-chain router that takes away some of the depegging risks. It can do this using 'single-sided liquidity pools' for native assets on different blockchains.

6597dda0da6c7c554278f0f2c34717c6dae84cffee263759604a3948cfce88a9.png

List of Networks Supported by Anyswap. Source

 

Bridge

Multichain has two mechanisms to bridge assets: cross-chain bridges and routers. Cross-chain bridges first lock tokens in a secure multi-party computation (SMPC) address, then a smart contract mints the equivalent amount of wrapped assets on the destination chain into the user's wallet (lock-and-mint method, discussed below). Withdrawing assets is the exact opposite: burn the wrapped assets, and then the SMPC address releases the native tokens back to the user on the original chain. Importantly, no humans are involved in this process.

Lock-and-Mint (LaM)

LaM bridges use off-chain validators/verifiers and a lock-mint-burn solution to overcome the communication barriers between separate L1 blockchains. The validators are responsible for the assets and functionality of the system. They're third-party actors introducing new trust assumptions unique to the validator set. Practically speaking, lock-and-mint is similar to an automated bank; they manage transactions in a more centralized, trust-based manner. 

You lock your assets on the source chain and then mint new synthetic/wrapped “equivalent” tokens on the new chain. All networks have a native token, and any other network can issue its own version of that token by “bridging” the asset. This system's security depends on the bridge and network of validators that validate transfers. This bridge type is currently the most common, despite being the most vulnerable. For instance, wBTC (wrapped Bitcoin available on Ethereum) is one of the largest bridges by TVL and utilizes the centralized company BitGo as the sole validator set. BitGo is responsible for all users' TVL.

6cf1aabc7a9e3388d059edadbf40432dd3d45055a34052d1f542fab979346d64.png

Source

MPCs

Multi-party computation (MPC) is a solution for securing data among several participants in a private manner. It allows many parties, each with their own private data, to verify the final computation without revealing their own secret portion of the data. Each participant in an MPC possesses a piece of confidential information. Typically, one entity owns one part of a cryptographic key that can move funds or change code.

MPCs shard a private key into many segments, with each individual possessing a portion of the private key. When signing a transaction, a subset of MPC nodes must independently sign the transaction and communicate it to the larger group. In order to sign transactions, each participant inputs their secret portion and a public input (the message to be signed) to generate a digital signature. Then, anyone with access to the public key should be able to validate and verify the signatures. Since the key shares are pooled and the signature is generated off-chain, an MPC wallet transaction cannot be distinguished from a typical private key wallet.

5566e819560ac70a65876ec22820d67885bf87a62347745ec0d3a6cfcd8d9aff.png

Even if a bridging protocol has a limited quantity of relayer nodes, the relayers can be chosen at random from the pool of candidates to create the multi-party computing (MPC) group. To authorize a cross-chain transaction, the protocol can require a minimum number of relayers to come together and sign the message before any action can be taken. The greater the threshold of an MPC group, the less likely it is that relayer groups will collude.

Multichain utilizes this key architecture to secure its LaM bridge. The decentralized SMPC node network runs the distributed signature algorithm, albeit just 21 of them. This process means Multichain is a de facto multi-party custody system with federated validators. Each of these 21 nodes independently verifies the source chain’s status and reaches a consensus together using the threshold-distributed signature algorithm on the verification results. No complete private key is shared at any point in the bridging process because nodes don't share their private keys with each other. All nodes can not reach a consensus unless each node singularly agrees. As a result, Multichain’s SMPC network guarantees correct results and can provide fast finality.

Due to its many integrations and supported blockchains, Multichain has become a major bridging solution, as seen by the metrics below.

6d3e00ca4539573b3182e0aa4f90a37e5daf0b8426d6905e0797ee202d3e3731.png

Source

Router

Multichain’s router works a bit differently, enabling any asset to be transferred, whether it is a native token or a token created using Multichain’s bridge infrastructure. The router is more akin to a liquidity pool; hence liquidity drives a user’s ability to bridge (as well as the overall UX) in the Multichain pools. 

To bridge tokens from chain A to chain B using the router:

  1. You deposit 10 ETH (as an example) to a Multichain pool on chain A
  2. 10 "multi-ETH” (a wrapped version of ETH) are then minted on chain A
  3. The SMPC node network then mints 10 multi-ETH on chain B while at the same time burning 10 multi-ETH tokens on chain A
  4. As long as the number of ETH tokens in the Multichain pool on chain B is greater than the multi-ETH tokens created, then those ETH tokens are sent to your wallet on chain B and the multi-ETH tokens are burned 

To the extent there aren’t enough multi-ETH tokens in the pool on chain B, you’ll be left with residual multi-ETH that can be later redeemed for ETH when they become available.

As mentioned, you must pay close attention to liquidity in Multichain pools. Otherwise, your experience could suffer. A potential router user must ensure sufficient depth in the Multichain pool to obtain the native asset; otherwise, they’ll have to wait for other users to refill the pool, and they can swap out of the wrapped asset.

But what happens when liquidity doesn’t exist on the other side of the bridge? To solve this, Multichain created a function that mints a token called “multiUSDC.”

Let’s say we’re trying to move $100 USDC from Ethereum to Fantom, and only $50 of liquidity currently exists in the Fantom USDC pool:

  1. Deposit USDC into the bridge on Ethereum
  2. Receive multiUSDC on Fantom
  3. $50 of our multiUSDC would be burned and swapped for real USDC, and the remaining $50 'multiUSDC' would stay in our wallet. The multiUSDC still acts as an I.O.U from the protocol

 

Security and Trust Assumptions

Issues arise for Multichain if people stop using it or protocols don't provide sufficient liquidity. In these cases, the router would become useless, and the classic lock-and-mint bridge would be the only option.

Another potential failure point relies on the 21 nodes’ trustworthiness in verifying transactions. Multichain economically incentivizes validators' behavior, but they still represent “trusted third parties.” The nodes in Multichain's SMPC control individual externally-owned accounts with public addresses correlating to the ultimate private key. There are 21 nodes in total, operated by various institutions in the crypto industry. These accounts can transfer assets to the destination chain, which only verifies the sender's address and not the message itself.

Consensus requires the majority of nodes to come together to verify the messages.

The security of this protocol, therefore, depends on the reputational security of the SMPC nodes, which presupposes an honest majority of more than half of all nodes. 13 signatures are required for cross-chain data transmission, and 12 nodes must collaborate to censor communications.

8405e72b8e05e3e3ec0f6b5256cbeab9552b005a4b2820dce24662c59e115f7a.png​​

Comparison of several bridges and the number needed to censor. Note, Multichain has just 21 entities involved in consensus now, not 24. Source

 

Additional cons include the following notable examples:

  • 81.4% of supply is locked in a contract, and those tokens could come onto the market in the future
  • Future utility for MULTI token is up to a governance vote
  • Without liquidity, it offers no competitive advantage over wrapped asset bridges

 

Two Previous Hacks

July 2021

In July 2021, the (at the time) experimental Anyswap multichain prototype V3 router was targeted in a successful hack. It is important to note that the Anyswap LaM bridge was not impacted and only the new cross-chain liquidity pools under the V3 Router on BSC were subjected to the hack. At a high level, the hacker was able to break the MPC that Anyswap had in place. The hacker deduced the private key to this MPC account by discovering two transactions with the same R-value signature. In a post-mortem, the Anyswap team was able to reproduce the attack method, further proving their MPC design was sub-optimal.

This hack resulted in a significant loss for Anyswap, with approximately $8 million being stolen off the platform. The Anyswap team took immediate action to secure all exploited funds and remedy the situation but the damage was already done. Additionally, the patch that the Anyswap team released to fix the bug received some criticism from experienced crypto and DeFi professionals.

 

January 2022

In just ~six short months later, (now) Multichain suffered another hack. In January 2022, multiple hackers exploited flaws in Multichain's smart contracts to steal ~$3 million across six token pairs on the project's router. Due to a flaw in the coding for these tokens' contracts, an attacker was able to steal any users' funds that had previously created approvals for any of the six coins. 

Ironically, the Multichain team uncovered this issue first and issued a public statement asking users who may be susceptible to revoke the approval. However, this notice also alerted the attackers to the issue. Multiple attackers targeted Multichain users who had approved these tokens and stole almost $3 million worth of tokens from the project.

Multichain has undergone numerous public audits and also offers a $2M bounty program with Immunefi. 

How do you rate this article?

42


Michael @ CryptoEQ
Michael @ CryptoEQ

I am a Co-Founder and Lead Analyst at CryptoEQ. Gain the market insights you need to grow your cryptocurrency portfolio. Our team's supportive and interactive approach helps you refine your crypto investing and trading strategies.


CryptoEQ
CryptoEQ

Gain the market insights you need to grow your cryptocurrency portfolio. Our team's supportive and interactive approach helps you refine your crypto investing and trading strategies.

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.

Page not displaying correctly?