Super Testnet's avatar
Super Testnet 5 months ago
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 (14)

Super Testnet's avatar
Super Testnet 5 months ago
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.
i think from a privacy pov it's definitely a good idea not to reveal on-chain that it's an HTLC and what was the hash lock/preimage on the happy path. i'm not sure about how UX is improved otherwise.
The problem I see with this design is that the server has to do L1 transaction + commit to locking funds up for possible time period without assurance from user that they will pay lightning invoice. I may be misunderstanding. These problems could be mitigated with a fee that has to be played before the L1 transaction but I would like to hear your ideas for mitigation @Super Testnet Thanks! Very interesting idea!
it's not a huge win, but you can make it non-interactive by making the private key share for the internal key the secret for the LN invoice. probably makes more sense for LN to on-chain swaps. in theory this makes the user able to unilaterally pay straight up from the HTLC and swipe the change. decreases server load and might improve UX. idk.
Super Testnet's avatar
Super Testnet 5 months ago
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.
Super Testnet's avatar
Super Testnet 5 months ago
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.