Cross-chain atomic swaps between Stacks <> Bitcoin and Stacks <> Ethereum/EVM github.com/MarvinJanssen/. Supports STX, SIP009, SIP010, BTC, ETH, ERC20, ERC721.
Conversation
Replying to
Exactly the same as BTC swaps. You can replace "BTC" with "ETH" in the diagram. Functionally equivalent HTLC on both sides, unlocked by the same preimage. github.com/MarvinJanssen/ & github.com/MarvinJanssen/
1
12
Show replies
Replying to
1
7
Not necessary, you could take the existing HTLC implementations and do Bitcoin <> Ethereum. I just didn't add tests for it.
1
Replying to
It’s a (technical) proof of concept but creating an interface is not too difficult.
1
Replying to
Well that's awesome! What software or tool should be used to operate HTLC and key exchanges between Solidity and Clarity?... I feel the security of atomic swap vastly depends on the tool you use for exchanging keys off-chain among two different blockchain, right?
1
Replying to
Those would have to be built. What I would do is have the first party give the counter party the TXID of the swap intent so that they can take the hash from the transaction itself. The hash is public so no security concern there. In fact, there is no sensitive data to be shared.
1






