<oembed><type>rich</type><version>1.0</version><title>Lloyd Fournier [ARCHIVE] wrote</title><author_name>Lloyd Fournier [ARCHIVE] (npub1kh…y05yp)</author_name><author_url>https://yabu.me/npub1khlhcuz0jrjwa0ayznq2q9agg4zvxfvx5x7jljrvwnpfzngrcf0q7y05yp</author_url><provider_name>njump</provider_name><provider_url>https://yabu.me</provider_url><html>📅 Original date posted:2020-12-16&#xA;📝 Original message:&#xA;Hey Z,&#xA;&#xA;On Tue, Dec 15, 2020 at 9:21 PM ZmnSCPxj &lt;ZmnSCPxj at protonmail.com&gt; wrote:&#xA;&gt;&#xA;&gt; Good morning LL,&#xA;&gt;&#xA;&gt;&#xA;&gt; &gt; - What do you do if the channel state has HTLCs in flight? I don&#39;t know -- I guess you can just put them onto the settlement tx? That way it&#39;s possible the payment could still go through. Alternatively you could just gift the money to the party offering the recovery settlement.&#xA;&gt;&#xA;&gt; Gifting the money is not a good option --- we allow HTLCs to be almost as high as the total channel value minus fees and reserve.&#xA;&gt; Thus all the claimable value could potentially be in an outgoing HTLC.&#xA;&gt; Worse, if our node is a forwarding node, it would be easy for a third party to arrange to have our funds in various HTLCs.&#xA;&#xA;Hopefully this recovery system is used by people whose channels are in&#xA;a HTLC free state 99.9999% of the time (and hopefully hardware&#xA;failures do not somehow coincide with HTLCs!).&#xA;As a user, it would be cool to be able to just lock up all my Bitcoin&#xA;into channels with well-established lightning nodes. That way if fees&#xA;go ballistic I can still move money around cheaply.&#xA;One of the main concerns for this pattern of user behaviour is the&#xA;recovery story I think. The first line of defence for routing nodes&#xA;(people who are taking their role in LN seriously) has to be redundant&#xA;data storage.&#xA;This would be a poor last-resort solution for routing nodes.&#xA;&#xA;&gt; Using static-key channels (i.e. channel keys are our node keys) allows us to recover even the outgoing channel with outgoing HTLC that has been forgotten by the outgoing peer.&#xA;&#xA;Right. I think this doesn&#39;t work with PTLCs though.&#xA;&#xA;&gt; Using static-key channels does have slightly weaker privacy:&#xA;&gt;&#xA;&gt; * Published nodes reveal all their channels with other published nodes on the blockchain.&#xA;&gt;   * While it is true that published nodes already reveal their channels with published nodes, they are currently only revealed on the LN gossip network, which is not archived; historical channels that are now closed are not informed to current surveillors.&#xA;&gt;     * On the other hand, all it takes is one &#34;LN wayback machine&#34; to record all LN gossip, which are self-attesting and include a signature from the node.&#xA;&gt; * Unpublished nodes risk revealing their channels with published nodes via the blockchain.&#xA;&gt;   * Invoices created by unpublished nodes currently reveal their public key.&#xA;&gt;     Payers can then uncover all the channels of that node.&#xA;&#xA;I don&#39;t think so? You need to know the private key of the node to&#xA;discover its channels! The points actually used in the channels would&#xA;be randomized with shared secret from Diffie-Hellman so are unlinkable&#xA;to the public keys of the two nodes under decisional Diffie-Hellman&#xA;assumption.&#xA;&#xA;There is more minor but still real concern of &#34;deniability&#34; of&#xA;unpublished closed channels if a large node operator later becomes&#xA;corrupted or coerced by a malicious actor. Since the node operator&#xA;still knows their secret key (obviously) they can still do a scan&#xA;(same as you would do in recovery) on the whole chain and find any&#xA;past channels they had with any nodes. A mitigation of this problem&#xA;would be for users who want unpublished channels to turn the&#xA;use-node-key-as-channel-key feature off for their keys in the channel&#xA;so they would still be able to do a backup-free channel scan but the&#xA;well-established node would lose the ability to do so. This means that&#xA;after the channel is closed there would be no way for the large node&#xA;to find the channel again assuming they honestly delete the data.&#xA;&#xA;Cheers,&#xA;&#xA;LL</html></oembed>