← All projects

Bitcoin Adapter

The piece that lets Internet Computer smart contracts talk directly to the Bitcoin network — no bridges, no middlemen.

Role
Software Engineer, DFINITY
Built with
Rust
~$20M in Bitcoinbacking ckBTC, which the adapter made possible

The problem

Smart contracts on the Internet Computer had no direct way to read from or write to Bitcoin. Anything that touched Bitcoin had to go through a third party.

What I built

I engineered the first version of the adapter in Rust. It does three jobs:

  • Finds peers on the Bitcoin network and keeps healthy connections to them.
  • Syncs the blockchain so the Internet Computer always has an up-to-date view of Bitcoin.
  • Relays transactions from smart contracts back out to the network.

What came of it

The adapter became the foundation for ckBTC, a Bitcoin-backed token on the Internet Computer. The design is written up in Enabling Bitcoin Smart Contracts on the Internet Computer, with Islam El-Ashi, Thomas Locher and Yvonne-Anne Pignolet.