It's called "Atomic swaps" - working since 2017.
Bitcoin atomic swaps enable the trustless, peer-to-peer exchange of Bitcoin (BTC) for cryptocurrencies on other blockchains (e.g., Litecoin, Monero, Ethereum) without relying on centralized exchanges or third-party custodians.
This process is secure...