Interlay Receives W3F Grant to Build Trustless BTC-Polkadot Bridge

Interlay
Interlay
Mar 5, 2020 · 4 min read

We are excited to announce our work on bringing Bitcoin to the Polkadot ecosystem. Over the past months, the team at Interlay has been developing an in-depth technical specification for Bitcoin-backed assets on Polkadot, which has today been released as open source. We are now implementing a PoC for a BTC-Parachain in Substrate and Rust.

XCLAIM, the framework underlying the BTC-Parachain, is a carefully designed, open and trustless system that leverages a dynamic set of collateralized intermediaries. Intermediaries are obligated to prove correct transaction execution on Bitcoin, which ensures that users face no financial damage. This open-source R&D project, based on top-tier academic research, is funded by a Web3 Foundation grant.

Image for post
Image for post
Interlay is bringing Bitcoin to Polkadot, funded by a Web3 Foundation grant

Polkadot is a platform built to connect and secure blockchains, independent of design and purpose. The Polkadot network relies on a sharded model where shards, called “parachains”, have unique state transition functions, i.e., can be designed for specific use cases. As long as a chain’s logic can compile to Wasm, it can connect to the Polkadot network as a parachain. Polkadot has a Relay Chain acting as the main chain of the system, which handles validation and finalization of blocks proposed by parachains.

With the Polkadot network, parachains can seamlessly communicate via trust-free message passing (XCMP). To interact with external blockchains such as Bitcoin, Polkadot uses bridge parachains that offer two-way compatibility — for example the BTC-Parachain.

BTC-Parachain: Trustless Bitcoin-backed Tokens

The BTC-Parachain uses XCLAIM to enable issuing and redeeming of tokens 1:1 backed by Bitcoin: PolkaBTC. On a high level, XCLAIM follows three main phases:

  • Issue: Create Bitcoin-backed tokens, so-called PolkaBTC on the BTC-Parachain.
  • Transfer: Transfer PolkaBTC to other users or migrate to other Parachains within the Polkadot ecosystem.
  • Redeem: Burn Bitcoin-backed tokens on the BTC-Parachain and receive 1:1 of the amount of Bitcoin in return.
Image for post
Image for post

XCLAIM Design Principles

XCLAIM guarantees that Bitcoin-backed tokens can be redeemed for the corresponding amount of Bitcoin, or the equivalent economic value in DOT. XCLAIM is:

  • Financially Secure: intermediaries pledge collateral and cryptographically prove correct behavior. Any attempt of theft is automatically punished, while users are reimbursed.
  • Dynamic and Permissionless: any user can become their own intermediary — simply, anytime, and without asking for permission. No need to rely on someone else, or any special hardware.
  • Fast and Efficient: XCLAIM is on average 95% faster and 65% cheaper than using HTLC atomic swaps with Bitcoin.

For more details,

Technical Specification: From Research to Practice

The 200-page specification for the BTC-Parachain provides an in-depth guide of how to implement XCLAIM between Bitcoin and a Polkadot parachain. It defines the data model, provides step-by-step function sequences, and describes how to implement the mechanisms necessary for secure operation.

The specification is split into two parts:

  • XCLAIM(BTC,DOT): This component implements protocols for the issue, transfer, and redemption of Bitcoin-backed tokens on Polkadot. In addition, this component handles the registration of Vaults (intermediaries that hold BTC locked on Bitcoin), stabilization of collateral against price fluctuations, automatic auctioning and liquidation of failing Vaults, and integration with an exchange rate oracle. Note: The underlying XCLAIM framework itself is not specific to Bitcoin or Polkadot and can be used between any two suitable blockchains.
  • BTC-Relay: The BTC-Relay component is used to verify that certain transactions have happened on the Bitcoin blockchain. BTC-Relay tracks the Bitcoin main chain, parsing, verifying, and storing block headers and handling forks when necessary.

What’s next?

As a next step, we are developing BTC-Relay in Rust using the Substrate framework, followed by an implementation of XCLAIM(BTC,DOT). This work will be available as an open-source contribution once the first code iteration is stable.

We are also actively seeking to integrate PolkaBTC into other parachains. If you are working on a Polkadot parachain project and would like to use Bitcoin (or other cryptocurrencies) in your system, reach out to us (contact@interlay.io).

About Interlay

Interlay envisions a future where permissioned and permissionless blockchains, regardless of design and purpose, can seamlessly connect and interact. From DeFi loans to decentralized exchanges, from layer-2 protocols to application-specific ledgers: anyone should use any digital currency on any blockchain platform.

Interlay is co-founded by Imperial College London researchers Alexei Zamyatin and Dominik Harz, who have been contributing cutting edge research to the blockchain space for multiple years: from identifying centralization issues in merged mining, over off-chain computations and cross-chain bribing, to attacks against DeFi protocols.

Since the invention of XCLAIM in 2018, the team has been busy making the framework even more secure via more robust cryptographic primitives, scalable via payment channels and usable by reducing collateral requirements.

We are hiring!

Helpful Links

Interlay

Decentralized Finance Made Interoperable

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store