<oembed><type>rich</type><version>1.0</version><title>Anthony Towns [ARCHIVE] wrote</title><author_name>Anthony Towns [ARCHIVE] (npub17r…x9l2h)</author_name><author_url>https://yabu.me/npub17rld56k4365lfphyd8u8kwuejey5xcazdxptserx03wc4jc9g24stx9l2h</author_url><provider_name>njump</provider_name><provider_url>https://yabu.me</provider_url><html>📅 Original date posted:2021-10-12&#xA;📝 Original message:&#xA;On Mon, Oct 11, 2021 at 05:05:05PM +1100, Lloyd Fournier wrote:&#xA;&gt; ### Scorched earth punishment&#xA;&gt; Another thing that I&#39;d like to mention is that using revocable signatures&#xA;&gt; enables scorched earth punishments [2]. &#xA;&#xA;I kind-of think it&#39;d be more interesting to simulate eltoo&#39;s behaviour.&#xA;If Alice&#39;s current state has balances (A, B) and P in in-flight&#xA;payments, and Bob posts an earlier state with (A&#39;, B&#39;) and P&#39; (so A+B+P&#xA;= A&#39;+B&#39;+P&#39;), then maybe Alice&#39;s justice transaction should pay:&#xA;&#xA;   A+P + max(0, B&#39;-B)*0.1 to Alice&#xA;   B-f - max(0, B&#39;-B)*0.1 to Bob&#xA;&#xA;(where &#34;f&#34; is the justice transaction fees)&#xA;&#xA;Idea being that in an ideal world there wouldn&#39;t be a hole in your pocket&#xA;that lets all your coins fall out, but in the event that there is such&#xA;a hole, it&#39;s a *nicer* world if the people who find your coins give them&#xA;back to you out of the kindness of their heart.&#xA;&#xA;&gt;     Note that we number each currently inflight transaction by &#34;k&#34;,&#xA;&gt;     starting at 0. The same htlc/ptlc may have a different value for k&#xA;&gt;     between different inflight transactions.&#xA;&gt; Can you expand on why &#34;k&#34; is needed in addition to &#34;n&#34; and &#34;i&#34;. k sounds like&#xA;&gt; the same thing as i to me.&#xA;&#xA;&#34;k&#34; is used to distinguish the inflight payments (htlcs/ptlcs), not the&#xA;inflight state (which is &#34;i&#34;).&#xA;&#xA;&gt; Also what does RP/2/k notation imply given the definition of RP you gave above?&#xA;&#xA;I defined earlier that if P=musig(A,B) then P/x/y = musig(A/x/y,B/x/y);&#xA;so RP/2/k = musig(A/2/n/i/2/k,RB2(n,i)/2/k).&#xA;&#xA;&gt;      * if the inflight transaction contains a ptlc output, [...]&#xA;&gt; What about just doing a scriptless PTLC to avoid this (just CSV input of&#xA;&gt; presigned tx)? The cost is pre-sharing more nonces per PTLC message.&#xA;&#xA;Precisely that reason. Means you have to share &#34;k+1&#34; nonce pairs in&#xA;advance of every inflight tx update. Not a show stopper, just seemed&#xA;like a headache. (It&#39;s already a scriptless-script, this would let you&#xA;use a key path spend instead of a script path spend)&#xA;&#xA;&gt;     This does not support option_static_remotekey, but compensates for that&#xA;&gt;     by allowing balances to be recovered with only the channel setup data&#xA;&gt;     even if all revocation data is lost.&#xA;&gt; This is rather big drawback but is this really the case? Can&#39;t &#34;in-flight&#34;&#xA;&gt; transactions send the balance of the remote party to their unencumbered static&#xA;&gt; remote key?&#xA;&#xA;They could, but there&#39;s no guarantee that there is an inflight&#xA;transaction, or that the other party will post it for you. In those case,&#xA;you have to be able to redeem your output from the balance tx directly,&#xA;and if you can do that, might as well have every possible address be&#xA;derived differently to minimise the amount of information any third&#xA;parties could glean.&#xA;&#xA;Cheers,&#xA;aj</html></oembed>