Author: ZmnSCPxj 2023-01-04 15:11:06
Published on: 2023-01-04T15:11:06+00:00
In a recent email conversation, ZmnSCPxj discussed the differences between a normal on-chain to off-chain swap and a submarine swap/peerswap that requires confirmation before sending out the HTLC on Lightning. According to ZmnSCPxj, the two swaps are largely similar, with the newly created outputs to the swap address needing confirmation before the swap server initiates the swap. The confirmation can be done at any time as long as the client is online. This means that if the swap server goes away for some reason, a long timeout in the swap can enable the user to sweep the funds via other means eventually. ZmnSCPxj notes that the top-level key spend can be spent by both parties, so Alice can move the funds on chain anywhere else with the server's cooperation. Regular swaps also simplify the "Bob Security" section since Bob sends out an HTLC with the corresponding swap hash. In another question to Laolu, ZmnSCPxj wanted to know whether the address given by the `loop in --external` command was safe for reuse. He noted that the fact that `loop in` requires a specific `--amt=X` flag suggested that the generated address is not safe for address reuse. Swap-in-potentiam, on the other hand, is relatively safe for address reuse because each UTXO for the same address backs a new, separate swap.
Updated on: 2023-06-03T11:28:01.679723+00:00