Skip to content

Instantly share code, notes, and snippets.

GeneFerneau /
Last active October 22, 2021 04:05
CoinSwap PTLC protocol

CoinSwap PTLC protocol

Below are two transaction flows for performing a CoinSwap.

  • key handover: based on 2pECDSA, used assuming both parties will complete the CoinSwap successfully
  • redeemscript: based on Taproot, used if an abort happens in key handover

Key handover


Keybase proof

I hereby claim:

  • I am geneferneau on github.
  • I am geneferneau ( on keybase.
  • I have a public key ASBYq5x_ZGmmDVaOuI-L0974Xa9ECmXPYdRmn6jIY-286Qo

To claim this, I am signing this object: