CedarMist / dapp-btc

Deposit BTC as ERC-721 NFTs with on-chain light-client, convert to/from liquid BTC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo

Liquid BTC on Oasis Sapphire

This project allows you to deposit and withdraw Bitcoin on the Oasis Sapphire confidential blockchain. Deposits of specific sizes (powers of 2) can be converted into LiquidBTC, an ERC-20 compatible token, which can in return be exchanged for real BTC.

It uses an on-chain Bitcoin SPV light-client to verify deposits have been made to addresses generated by the BTCDeposit contract. To redeem the underlying BTC a deposit can be 'burned' which reveals the secret key and address to the holder, meaning 'un-burned' BTC deposits can be freely traded or converted to & from LiquidBTC tokens because the secret key can't leak without it being evident.

About

Deposit BTC as ERC-721 NFTs with on-chain light-client, convert to/from liquid BTC

License:Apache License 2.0


Languages

Language:Solidity 46.0%Language:TypeScript 30.4%Language:Python 20.9%Language:Makefile 1.6%Language:JavaScript 0.4%Language:HTML 0.4%Language:CSS 0.3%