AI智能
改变未来

Decentralized Fair Exchange

学习笔记

Exchange same chain coin

  • 协商一个both signed tx
  • Create a multi-sign escrow address managed by both users
    ○ A0 -> multi-sign escrow address -> B0
    ○ B1 -> multi-sign escrow address -> A1

Exchange different chain coin

https://en.bitcoin.it/wiki/Atomic_swap

  • Hash-time lock: hashLock+timeLock
    https://en.bitcoin.it/wiki/Hash_Time_Locked_Contracts
    ○ Can be used in payment channel also
  • P2P tradeX: need a special chain
    ○ 链B提交一个特定交易commitment,链A上先正常交易,链B可以解析用户提交的链B的交易,然后链B自动执行交易。从而完成跨链交易
    ○ https://bitcointalk.org/index.php?topic=91843.0
    ○ https://bitcointalk.org/index.php?topic=1619536.0

More generation fair exchange

  • Fair exchange with RSA blinding
  • Fairswap: optimistic proof
  • Zkcp: zk proof

Zk proof & optimistic proof

  • Truebit/Arbitrume: with a vm for optimistic proof
  • Zksync: stnark zk proof
赞(0) 打赏
未经允许不得转载:爱站程序员基地 » Decentralized Fair Exchange