BTC-Relay at a Glance

Overview

BTC-Relay is the key component of the BTC Bridge on Harmony. It’s main task is to allow the Bridge to verify the state of Bitcoin and react to transactions and events. Specifically, BTC-Relay acts as a Bitcoin SPV/light client on Harmony, storing only Bitcoin block headers and allowing users to verify transaction inclusion proofs. Further, it is able to handle forks and follows the chain with the most accumulated Proof-of-Work.

The correct operation of BTC-Relay is crucial: should BTC-Relay cease to operate, the bridge between Harmony and Bitcoin is interrupted.

Overview of BTC-Relay as a component of the BTC Bridge

BTC-Relay (highlighted in purple) is a key component of the BTC Bridge: it is necessary to verify and keep track of the state of Bitcoin.

How to Use this Document

This document provides a specification for BTC-Relay in the form of a Harmony Bridge acting as a Bridge to Bitcoin, to be implemented on Substrate.

Before implementing or using BTC-Relay on Harmony, make yourself familiar with this specification and read up on any content you are unfamiliar with by following the provided links (e.g. to academic papers and the Bitcoin developer reference).