Skip to content

Instantly share code, notes, and snippets.

@phm87
Last active January 12, 2020 07:42
Show Gist options
  • Save phm87/2a45bede942559da8acef6ada36b685c to your computer and use it in GitHub Desktop.
Save phm87/2a45bede942559da8acef6ada36b685c to your computer and use it in GitHub Desktop.
Submarine swaps

https://medium.com/suredbits/how-do-submarine-swaps-work-907ed0d91498

https://github.com/submarineswaps/swaps-service/blob/1a1ea4de5af7e7dd82514aeef75a63fedee81431/docs/chain_swap_script.md

https://en.bitcoinwiki.org/wiki/Pay-to-Script_Hash

https://zcash-rpc.github.io/signrawtransaction.html

https://medium.com/@bitaps.com/exploring-bitcoin-signing-p2sh-input-2dde869c5f5c

https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch04.asciidoc#p2sh

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

https://blog.softwaremill.com/debugging-bitcoin-script-failures-f7f27b2a0ec4

https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line/blob/master/08_2_Building_the_Structure_of_P2SH.md

HTLC:

https://bitcoin.stackexchange.com/questions/74753/htlc-hash-time-lock-contract-using-bitcoin-qt

https://github.com/bitcoin/bips/blob/master/bip-0065.mediawiki

https://medium.com/summa-technology/bitcoins-time-locks-27e0c362d7a1

https://www.soroushjp.com/2014/12/20/bitcoin-multisig-the-hard-way-understanding-raw-multisignature-bitcoin-transactions/

http://www.righto.com/2014/02/bitcoins-hard-way-using-raw-bitcoin.html

https://medium.com/@bitaps.com/exploring-bitcoin-signing-p2sh-input-2dde869c5f5c

https://bitcoin.stackexchange.com/questions/66594/signing-transaction-with-ssl-private-key-to-pem

https://gist.github.com/fivepiece/3f77270cd329f75fa28b5f0101b4f531

https://bitcoin.stackexchange.com/questions/83900/converting-wif-as-base58-string-to-byte-array-in-bash

KMD & Hush added into swaps-service (similar to BCH), NOT TESTED:

https://github.com/submarineswaps/swaps-service/compare/master...phm87:hush

AtomicDEX/mm2: https://github.com/KomodoPlatform/atomicDEX-API/blob/mm2/mm2src/coins/utxo.rs#L309

https://bjarnemagnussen.netlify.com/post/lets-build-a-broker-for-submarine-swaps-part3/

hodl invoice (reverse submarine swaps): lightningnetwork/lnd#2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment