Catamaran Swaps

Trustless swaps between Bitcoin chain and Stacks chain

Friedger Müffke - 16 Sep 2021 - Blockchain Brussels - Citizen Corner

Bitcoin

Value transfer (and storage)

Mining: Energy to coins

Stacks Blockchain

Background: Naming system and own your internet

 

More programmable Bitcoins with smart contracts

 

Mining: Bitcoins to coins

 

Stacking: Earn BTC with STX

Mining

  • Bitcoin (Proof of work)
    Miners throw dices until win
    Most dices, highest probability to win
     
  • Stacks (Proof of transfer)
    Miners throw Bitcoins until Bitcoin block
    Most Bitcoins, highest probability to win

Mining

  • Bitcoin (Proof of work)
    Miners throw dices until win
    Most dices, highest probability to win
     
  • Stacks (Proof of transfer)
    Miners throw Bitcoins until Bitcoin block
    Most Bitcoins, highest probability to win
     
  • Miami Coin (PoX lite)
    Miners throw Stacks until Stacks block
    Most Stacks, highest probability to win

Stacks miners know about Bitcoin Blocks

credit: @axopoa

Trustless swaps

  • Bitcoin
    Transfers
     
  • Stacks
    Transfers
    Contract calls

Trustless swap

  • Seller puts STX or assets into escrow
     
  • Buyer sends BTC to seller
     
  • Buyer submits BTC transaction,
    escrow sends STX or assets

Verify BTC transaction

  • Provide:
  • tx
  • Merkle proof
  • block header

    Verify on-chain:
  • tx is in proof (hash)
  • Merkle root is in block header
  • block header hash is in blockchain (lookup)

Swap NFTs, FTs

Mint by Bitcoin Tx

Made with Slides.com