<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">There’s another potential partial solution here if we can create some cryptographic protocol for atomically swapping information. This would be used to swap the final HTLC sig for the hash preimage, preventing the optionality issue. This idea was inspired by a paper called “Timed Commitments” by Dan Boneh&nbsp;<div>(<a href="https://www.iacr.org/archive/crypto2000/18800237/18800237.pdf">https://www.iacr.org/archive/crypto2000/18800237/18800237.pdf</a>).&nbsp;</div><div><br></div><div>The high level idea is that each party swaps a commitment to the information they want to atomically swap and then slowly reveal verifiable “hints” that make it easier and easier to brute force the commitment. Each party takes turns revealing a hint.&nbsp;</div><div><br></div><div>The protocol to do something like this in lightning doesn’t exist afaik but it seems feasible. This also may fail to work when there are intermediary nodes not controlled by the two trading parties.&nbsp;</div><div><br></div><div>I also could be completely off here but I thought the idea was worth sharing.&nbsp;</div><div><br></div><div>Best</div><div>Alex<br><br><div dir="ltr">On Dec 27, 2018, at 10:47, Will Yager &lt;<a href="mailto:lists@yager.io">lists@yager.io</a>&gt; wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><span>Very good point.</span><br><span></span><br><span>Two possible responses come to mind.</span><br><span></span><br><span>1. Cross-asset brokers charge a standard option premium to perform the brokerage. I can't tell if you think this is totally broken or if it's just sad. I don't understand lightning well enough to figure that out on my own - could you expand more on what effects this would have?</span><br><span></span><br><span>2. Cross-asset brokers require counterparties to issue them a symmetric but slightly more out-of-the-money call, which they can redeem in the event of a large FX swing. This bounds their FX losses.</span><br><span></span><br><span></span><br><span>Will</span><br><span></span><br><span></span><br><span></span><br><span>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐</span><br><span>On Thursday, December 27, 2018 1:43 PM, ZmnSCPxj via Lightning-dev &lt;<a href="mailto:lightning-dev@lists.linuxfoundation.org">lightning-dev@lists.linuxfoundation.org</a>&gt; wrote:</span><br><span></span><br><span></span><br><blockquote type="cite"><span> &nbsp;&nbsp;&nbsp;HTLCs allow creation of American Call Options.</span><br></blockquote><span></span><br><span>_______________________________________________</span><br><span>Lightning-dev mailing list</span><br><span><a href="mailto:Lightning-dev@lists.linuxfoundation.org">Lightning-dev@lists.linuxfoundation.org</a></span><br><span><a href="https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev">https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev</a></span><br></div></blockquote></div></body></html>