<oembed><type>rich</type><version>1.0</version><author_name>npub16dt55fpq3a8r6zpphd9xngxr46zzqs75gna9cj5vf8pknyv2d7equx4wrd</author_name><author_url>https://nostr.ae/npub16dt55fpq3a8r6zpphd9xngxr46zzqs75gna9cj5vf8pknyv2d7equx4wrd</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2020-06-20&#xA;📝 Original message:&#xA;On Sat, Jun 20, 2020 at 10:54:03AM +0200, Bastien TEINTURIER wrote:&#xA;&gt; We&#39;re simply missing information, so it looks like the only good&#xA;&gt; solution is to avoid being in that situation by having a foot in&#xA;&gt; miners&#39; mempools.&#xA;&#xA;The problem I have with that approach is that the incentive is to&#xA;connect to the highest hashrate pools and ignore the long tail of&#xA;smaller pools and solo miners.  If miners realize people are doing this,&#xA;they may begin to charge for information about their mempool and the&#xA;largest miners will likely be able to charge more money per hashrate&#xA;than smaller miners, creating a centralization force by increasing&#xA;existing economies of scale.&#xA;&#xA;Worse, information about a node&#39;s mempool is partly trusted.  A node can&#xA;easily prove what transactions it has, but it can&#39;t prove that it&#xA;doesn&#39;t have a certain transaction.  This implies incumbent pools with a&#xA;long record of trustworthy behavior may be able to charge more per&#xA;hashrate than a newer pools, creating a reputation-based centralizing&#xA;force that pushes individual miners towards well-established pools.&#xA;&#xA;This is one reason I suggested using independent pay-to-preimage&#xA;transactions[1].  Anyone who knows the preimage can mine the&#xA;transaction, so it doesn&#39;t provide reputational advantage or direct&#xA;economies of scale---pay-to-preimage is incentive equivalent to paying&#xA;normal onchain transaction fees.  There is an indirect economy of&#xA;scale---attackers are most likely to send the low-feerate&#xA;preimage-containing transaction to just the largest pools, so small&#xA;miners are unlikely to learn the preimage and thus unlikely to be able&#xA;to claim the payment.  However, if the defense is effective, the attack&#xA;should rarely happen and so this should not have a significant effect on&#xA;mining profitability---unlike monitoring miner mempools which would have&#xA;to be done continuously and forever.&#xA;&#xA;ZmnSCPxj noted that pay-to-preimage doesn&#39;t work with PTLCs.[2]  I was&#xA;hoping one of Bitcoin&#39;s several inventive cryptographers would come&#xA;along and describe how someone with an adaptor signature could use that&#xA;information to create a pubkey that could be put into a transaction with&#xA;a second output that OP_RETURN included the serialized adaptor&#xA;signature.  The pubkey would be designed to be spendable by anyone with&#xA;the final signature in a way that revealed the hidden value to the&#xA;pubkey&#39;s creator, allowing them to resolve the PTLC.  But if that&#39;s&#xA;fundamentally not possible, I think we could advocate for making&#xA;pay-to-revealed-adaptor-signature possible using something like&#xA;OP_CHECKSIGFROMSTACK.[3]&#xA;&#xA;[1] https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-April/002664.html&#xA;[2] https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-April/002667.html&#xA;[3] https://bitcoinops.org/en/topics/op_checksigfromstack/&#xA;&#xA;&gt; Do you think it&#39;s unreasonable to expect at least some LN nodes to&#xA;&gt; also invest in running nodes in mining pools, ensuring that they learn&#xA;&gt; about attackers&#39; txs and can potentially share discovered preimages&#xA;&gt; with the network off-chain (by gossiping preimages found in the&#xA;&gt; mempool over LN)?&#xA;&#xA;Ignoring my concerns about mining centralization and from the&#xA;perspective of just the Lightning Network, that doesn&#39;t sound&#xA;unreasonable to me.  But from the perspective of a single LN node, it&#xA;might make more sense to get the information and *not* share it,&#xA;increasing your security and allowing you to charge lower routing fees&#xA;compared to your competitors.  This effect would only be enhanced if&#xA;miners charged for their mempool contents (indeed, to maximize their&#xA;revenue, miners might require that their mempool subscribers don&#39;t share&#xA;the information---which they could trivially enforce by occasionally&#xA;sending subscribers a preimage specific to the subscriber and seeing if&#xA;it propagated to the public network).&#xA;&#xA;&gt; I think that these recent attacks show that we need (at least some)&#xA;&gt; off-chain nodes to be somewhat heavily invested in on-chain operations&#xA;&gt; (layers can&#39;t be fully decoupled with the current security assumptions&#xA;&gt; - maybe Eltoo will help change that in the future?).&#xA;&#xA;I don&#39;t see how eltoo helps.  Eltoo helps ensure you reach the final&#xA;channel state, but this problem involves an abuse of that final state.&#xA;&#xA;-Dave&#xA;-------------- next part --------------&#xA;A non-text attachment was scrubbed...&#xA;Name: signature.asc&#xA;Type: application/pgp-signature&#xA;Size: 833 bytes&#xA;Desc: not available&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200620/6085153a/attachment-0001.sig&gt;</html></oembed>