I made a chart that compares my new Papa Swap protocol with traditional Submarine Swaps. I also implemented the code in the form of a wallet that works like Muun Wallet, but using Papa Swaps. I plan to present my research and demo my code at Bitcoin++ Istanbul. See you there! image

Replies (8)

Yes, a musig would be more efficient. I have never used musig in a demo except a demo of musig itself, because I find it hard to implement and not worth it for a proof of concept. A real implementation should probably use musig for greater efficiency.
Not needing revealing the preimage is one theoretical advantage, but a bigger advantage is that the user gets full, unilateral control of the money after only 1 tx. They do not need to sweep it, as possession of the secret and a sighash_none sig from the server lets the user send the money wherever the user wants to. The server, by contrast, is limited: he can only send the money into a traditional submarine swap address, which the user controls too, since the server has to wait 2 weeks to do anything, and the user does not, as the user knows the secret. So the user has full control of the money in the papa swap address in the same sense that a user fully controls their LN balance. Also, in my implementation, the sig that lets the server move the money into a submarine swap address depends on the existence of a utxo that gets consumed when the user next sends or receives money. Once the user does that, the old sig becomes invalid, so the server cannot even move the money into a traditional submarine swap address.
The name Papa Swap comes from Papa Class, a group of Cold War submarines that included the world’s fastest declassified submarine – the Soviet K-222. As those are the fastest submarines, these are the fastest submarine swaps.
Yup, this is a general unsolved problem with submarine swaps: the party with the timelock path can be grieved by abandoning the swap after the name the L1 deposit. They lose atwo mining fees and make no money. I think a fidelity bond paid via LN can help here. If you compete the swap, you trust the server to give you the bond money back. If you abandon the swap, the server keeps the bond money to reimburse their two mining fees.
If you think about it, all submarine swaps are LN to on chain. Even when one party is going from on chain to LN, the other party is going from LN to on chain.
↑