HTLC atomic swap — BTC directly into the contract
Implemented
Two contracts sharing the same hashlock sha256(secret): one on EVM, one on
Bitcoin (P2WSH with OP_SHA256). The buyer locks BTC, the seller locks
tokens, and the secret moves both sides in the same direction — or both roll back, after
the timelock. Nobody holds the keys in the middle.
- No custody and no operator: each side is protected by its own chain.
- It needs a counterparty and communication for the hashlock — it is not an order book.
- Recommended margin between the EVM timelock and the Bitcoin one: +24h.