<oembed><type>rich</type><version>1.0</version><author_name>npub17rld56k4365lfphyd8u8kwuejey5xcazdxptserx03wc4jc9g24stx9l2h</author_name><author_url>https://nostr.ae/npub17rld56k4365lfphyd8u8kwuejey5xcazdxptserx03wc4jc9g24stx9l2h</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2021-12-21&#xA;📝 Original message:&#xA;On Tue, Dec 21, 2021 at 04:25:41PM +0100, Bastien TEINTURIER wrote:&#xA;&gt; The reason we have &#34;toxic waste&#34; with HTLCs is because we commit to the&#xA;&gt; payment_hash directly inside the transaction scripts, so we need to&#xA;&gt; remember all the payment_hash we&#39;ve seen to be able to recreate the&#xA;&gt; scripts (and spend the outputs, even if they are revoked).&#xA;&#xA;I think &#34;toxic waste&#34; refers to having old data around that, if used,&#xA;could cause you to lose all the funds in your channel -- that&#39;s why it&#39;s&#xA;toxic. This is more just regular landfill :)&#xA;&#xA;&gt; *_anchor: dust, who cares -- might be better if local_anchor used key =&#xA;&gt; &gt; revkey&#xA;&gt; I don&#39;t think we can use revkey, &#xA;&#xA;musig(revkey, remote_key) &#xA;  --&gt; allows them to spend after you&#39;ve revealed the secret for revkey&#xA;      you can never spend because you&#39;ll never know the secret for&#xA;      remote_key&#xA;&#xA;but if you just say:&#xA;&#xA;(revkey)&#xA;&#xA;then you can spend (because you know revkey) immediately (because it&#39;s&#xA;an anchor output, so intended to be immediately spent) or they can spend&#xA;if it&#39;s an obsolete commitment and you&#39;ve revealed the revkey secret.&#xA;&#xA;&gt; this would prevent us from bumping the&#xA;&gt; current remote commitment if it appears on-chain (because we don&#39;t know&#xA;&gt; the private revkey yet if this is the latest commitment). Usually the&#xA;&gt; remote peer should bump it, but if they don&#39;t, we may want to bump it&#xA;&gt; ourselves instead of publishing our own commitment (where our main&#xA;&gt; output has a long CSV).&#xA;&#xA;If we&#39;re going to bump someone else&#39;s commitment, we&#39;ll use the&#xA;remote_anchor they provided, not the local_anchor, so I think this is&#xA;fine (as long as I haven&#39;t gotten local/remote confused somewhere along&#xA;the way).&#xA;&#xA;Cheers,&#xA;aj</html></oembed>