Darwinia Msgport Use Case: Helix LN Bridge

Darwinia
DARWINIA NETWORK
Published in
3 min readJan 18, 2024

The advantage of using Darwinia Msgport is that it is very easy to switch between different low-level message layers without making big changes to the code. —— Helix Bridge

Helix Bridge is a fully open-source and decentralized cross-chain asset bridge.

LN Bridge

LN Bridge is a novel token bridge from Helix Bridge. Compared to other traditional token bridges, LN Bridge offers very low cross-chain fees because it only requires actual cross-chain messages in very rare scenarios. The actual cross-chain messages are implemented on Darwinia Msgport.

This LN Bridge protocol establishes a liquidity provider role called the LnProvider (Liquidity Node Provider). When a user transfers tokens between two chains, the LnProvider receives tokens on one chain and transfers an equivalent amount of tokens to the user on the other chain.

When does cross-chain occur?

In fact, LN Bridge’s token cross-chain functionality doesn’t require the transmission of actual cross-chain messages. Instead, token cross-chain transfers are handled off-chain by LN Providers, which is the primary reason for its exceptionally low cross-chain fees. Cross-chain messages are only needed to prove the non-functioning of an LN Provider when it fails to perform as expected. The protocol will then use this proof to slash the non-functioning LN Provider. This is because every LN Provider must first register on the protocol and make a collateral.

When a user initiates a cross-chain transfer on LN Bridge and the LnProvider fails to transfer tokens to the user on the target chain, that’s when cross-chain messaging comes in.

There are two scenarios:

1. If the LnProvider fails to transfer tokens to the user, and the collateral is on the target chain.

The user can submit the transfer proof to the target chain through the Darwinia Msgport. The target chain combines the proof with evidence that the LnProvider failed to transfer the tokens, and extracts collateral from the LnProvider to compensate the user.

2. If the LnProvider fails to transfer tokens to the user, and the collateral is on the source chain.

The user can use Darwinia Msgport to send proof of the failed transfer to the source chain. The source chain can then combine this proof with the original transfer proof to verify the LnProvider's failure. Once the source chain has verified the LnProvider's failure, it can extract collateral from the LnProvider to compensate the user.

Summary

This use case showcases the LN Bridge by Helix Bridge, an innovative token bridge with low cross-chain fees that utilizes the cross-chain messaging service provided by Darwinia Msgport.

The LN Bridge operates without requiring actual cross-chain messages for token transfers, instead using off-chain handling by Liquidity Node Providers (LnProviders). These providers manage token exchanges between chains, with cross-chain messages only needed if a LnProvider fails to perform.

While cross-chain messages are only needed when an LnProvider fails to perform, the security of cross-chain messaging is vital for the reliability of Helix LN Bridge. Darwinia Msgport serves as the final guard of the LN Bridge Protocol.

About Darwinia Network

GitHub | Website | Medium | Twitter | Telegram | Discord | Online Communities

Darwinia is the community-run technology and service powering the cross-chain capabilities of decentralized applications.

--

--

Darwinia
DARWINIA NETWORK

As an open cross-chain bridge protocol based on Substrate, Darwinia focuses on the construction of future Internet of Tokens. TG: http://t.me/DarwiniaNetwork