Open-Source BTC Login + BTC ↔ ckBTC Swap

Hey everyone,

Quick question:
Does anyone know if there is open-source code for:

  1. BTC login integration for Internet Computer apps (i.e. UniSat )?

  2. A simple flow to swap BTC (↔) ckBTC after login?

Before I start building my own, I wanted to check if someone has already published these components.

Thanks!
Nuno

1 Like

You don’t need connect your wallet to mint ckBTC, you just need a principal id to mint ckBTC. There is two approaches

  1. Derive a BTC address from ICP’s wallet principal

This approach is easy, wallet already have UI to manage token

  1. Connect BTC wallet

I believe this approach implement by odin.fun. It is more complicated because you have to manage a identity provider and adding wallet UI for ckBTC

2 Likes