Delivery-date: Thu, 28 Mar 2024 08:24:20 -0700 Received: from mail-oa1-f64.google.com ([209.85.160.64]) by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rprc4-0004bP-3W for bitcoindev@gnusha.org; Thu, 28 Mar 2024 08:24:20 -0700 Received: by mail-oa1-f64.google.com with SMTP id 586e51a60fabf-21fde0b279fsf951855fac.3 for ; Thu, 28 Mar 2024 08:24:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711639454; cv=pass; d=google.com; s=arc-20160816; b=hXCB7E6Lzv2DtKc8VKTvhQop3eiTz0tIRmGgLWd7PGRib8YK/BsjViqsCLq8XSaw9E goW+veoICoGOntdCyKV8GUbQD0l2Mnv2SjY9zZVC2ttH5uK6yf3lrThxV8bJd8UX3e/h aqjgzxnjP0u5JtKSgTd0UsL1NskJ5Gq43LgMo88g2AESOGaCIm/+zSFa3DE9h6j03ak1 bFLkW9gML3EaBOGHLb45U2EFNNUHV9gG8z76M+NVmN1BFrN4+MUGt0yuaums4eZXSBxx zb/nmgVLUbYKtVSzUCWKrmek7WtzdB0zDD+ZDnyaSQURCSMGF+/HrAf281s3/RX6dxgb JdaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :feedback-id:sender:dkim-signature; bh=LahW+64jiKKqthh/d6dDTfYjfitKlpvCrzBbgquYck8=; fh=Pgvv88ELNgjL0yEpzRpFYmtO28/Fw18QrZy7AwERl0o=; b=0c6t2NEkfkiqVqyy5JWZZ19357utGPFkO1VmpOYpTTNMn2uoTo+Sjgrmxn0CrOCiqZ +w1vKzEcB0kC2jPtx21Ra7OLAfoUhSLGmClj+CAUY1tZT6eC4hrh3APenuB+arQ0WKK4 wJN7GAo0tFgKtw7xxeWT9p6skUGGs04adeHfdTgUnFH2aojfIUZ5nD+gq7Q8tx6zaZqJ EHYJ+ztQ0qK/dJmqEgN1Lc7BWckA/hl1hAFYC36JeyRTKL8/sAnd6AtWMm2mhrzBx5UV BnMuBgRLafhEaKcq4fhpDDZtt/1BwnwkV+6wpiMQ0xx/sAeaZqQgy+adoUYsGkOM78ky 4Ymw==; darn=gnusha.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DIhWEXxb; spf=pass (google.com: domain of pete@petertodd.org designates 64.147.123.152 as permitted sender) smtp.mailfrom=pete@petertodd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1711639454; x=1712244254; darn=gnusha.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id:sender :from:to:cc:subject:date:message-id:reply-to; bh=LahW+64jiKKqthh/d6dDTfYjfitKlpvCrzBbgquYck8=; b=gH7N3x1VJ2Wm33iq0RnuC+sAYnU321r9SaAe7U/QC0FPZMApDiDLA6hWDSYrgvX6qY BLJDSJIp2rN+y0RB73ViFpH20EsxM9hQdd0M+6eOnk522W0kzmDP52JZrWrgafbbUCL7 jICmUFN/1tWmJnKzw3SvF80+D/4sA+ldEuslq9GuVdKOGFSLL2TFig2iml/RLqII/A8P Xg9ihwW3CHfbde4H8xoMEK/hIpG+xxQaAKetfu18ZiM//OJVN4TCzWhS0AJP0SqKr4v5 kswBqqLXr6irjLUnwmMRh3zGCmtD/lh8X/x25djMZwgrDPu0ZKwuZJEOTmcCQbBVWaq3 Co8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711639454; x=1712244254; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=LahW+64jiKKqthh/d6dDTfYjfitKlpvCrzBbgquYck8=; b=HfEOmS1E4fOujmxS0KVhzAE8veJl4cYsruVlweHsTOKj/x4FZxMp2TXsduE5gUvwcF JWmOILpq9z9hFX0fiUaKbhzUbG4JvU9dMv15jeMbE23KwJs9e8OdPyoVSCLsoaNGoA5e hzLv7sctKztg1djAqhdpninW4j5HftNMzTxt+Vq0RNJ+5XaEXjAcm2DK6SvTPFXMhv8e FmX/N9whu5lqskcBn+AvDylIBsRVgSibm2Qy3h8EXhhO5Y86JnC872jtATsr7fwKMGbl HpsdJs12DHb+waU3JXhgC+gwv51RbFlivEdkwdGEEg8uWStPRiMyq0kt9IKwVDK9HOpB CHkw== Sender: bitcoindev@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWS5walg65Xq2GOb5+TEoMcCjVxV/6P5z3WRedGWIYGl498sNNNQFN6Snq8HerIkTSV+79VRDjjNfa7LTxmSB0VdyEhJOA= X-Gm-Message-State: AOJu0Yzu3+M7XVUHnCF38FnccZy5ZJR4ycYEmKACwZat/ZZBJryamk9r IpVDLNljaTOgT0PFcjTiBOnV/+XFOWeLgNUo3ZNAei1sXls46iV8 X-Google-Smtp-Source: AGHT+IEtdcdl73ArhvYzd0XxTdEl/K9mGI+UseSyCvG2bl4l2xyPPL9tmX4v+K8f42D/aNpSUmYYMA== X-Received: by 2002:a05:6870:f784:b0:22a:7d6d:8197 with SMTP id fs4-20020a056870f78400b0022a7d6d8197mr3402225oab.21.1711639454098; Thu, 28 Mar 2024 08:24:14 -0700 (PDT) X-BeenThere: bitcoindev@googlegroups.com Received: by 2002:a05:6871:430d:b0:229:eefd:98d5 with SMTP id lu13-20020a056871430d00b00229eefd98d5ls1459867oab.2.-pod-prod-07-us; Thu, 28 Mar 2024 08:24:13 -0700 (PDT) X-Received: by 2002:a05:6808:1491:b0:3c3:7b9b:baf4 with SMTP id e17-20020a056808149100b003c37b9bbaf4mr18019oiw.0.1711639453448; Thu, 28 Mar 2024 08:24:13 -0700 (PDT) Received: by 2002:a05:6808:1288:b0:3c3:d110:85c6 with SMTP id 5614622812f47-3c3de9a8da1msb6e; Thu, 28 Mar 2024 08:20:15 -0700 (PDT) X-Received: by 2002:a05:6a20:914b:b0:1a3:a0cc:de91 with SMTP id x11-20020a056a20914b00b001a3a0ccde91mr4276294pzc.57.1711639214214; Thu, 28 Mar 2024 08:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711639214; cv=none; d=google.com; s=arc-20160816; b=ZyAiwbnuRM0gPz6lxOoLxpsRi3OkjsAcvw94QivfyW76mDNgNLPRRrgaSLBROdEbhE jWbyZc7/PpvM61GNHk1KHdtieiGlc2eOgeoWeXfAYghjlNOLzDJvqsYMECPR5KTWNsnI 2xZcrz+uLZtx7mPqxQS9N+bjMBIvpKqfaxhU4GGTmVyhhhabP8rbgB1qmEzwCLwr9E3a ZZSKIQysghqnHEhvPflCAtX8zrTIul3y2Qy2aCmcW3pSrZbaC8aGx9bFkwFLCLdTAuft 1+UwdwH2wdkA/Aj3SM6b+FOB7SW0YsZ0cCpYcdrJFD+cP9dJAJ4rUBhijEPKdJjUscdV 4JFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:dkim-signature; bh=5AhLIjb1ro9JYpc5gbNtfIz3VEhlAOPM0ZKp2Ypg8JU=; fh=sapDHqhE46zLmMBeB1lkoe0zq8J9+V3Afx71/j8kvug=; b=q8TpqHhig2NKu/D26pjP5QaRRJZ6wRyhzvrWZEejfXfW9VGR6TRjx5S14gbxaAQKZk IryNxWmXa52YLJG3tiwsQI4AQmd5dmVvgLGpdMKoHI9hhJ6Sz4lRec2Zx1EljD6v6t2W CjxGnKvMaCDORHWs8WjCumLdurEsAT84PZ1SspjiR0qnO+wmt1fM+Z/syKisfRMIfqIh U0mEIOvislsd9tzXR+aof4hBJwHi7/D+bBBwa8gGFQemxwdm6X4z20PNB5lxEkO5SavK pBgYlubbbI+izZqzFR42n3wo8U1jnshMVnxoQj6Vr4tuRGyr58u0V31PO/47pzpPAXc5 slrg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DIhWEXxb; spf=pass (google.com: domain of pete@petertodd.org designates 64.147.123.152 as permitted sender) smtp.mailfrom=pete@petertodd.org Received: from wfhigh1-smtp.messagingengine.com (wfhigh1-smtp.messagingengine.com. [64.147.123.152]) by gmr-mx.google.com with ESMTPS id t36-20020a634624000000b005dc13d8277dsi149961pga.2.2024.03.28.08.20.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 08:20:14 -0700 (PDT) Received-SPF: pass (google.com: domain of pete@petertodd.org designates 64.147.123.152 as permitted sender) client-ip=64.147.123.152; Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.west.internal (Postfix) with ESMTP id 36C8E18000AD; Thu, 28 Mar 2024 11:20:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 28 Mar 2024 11:20:12 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudduledgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtroertddtvdenucfhrhhomheprfgvthgv rhcuvfhougguuceophgvthgvsehpvghtvghrthhouggurdhorhhgqeenucggtffrrghtth gvrhhnpedutdffleekiedtfefgteefjefhffeiffevleegtdfhueeffeejveeljeekfefh ieenucffohhmrghinhepphgvthgvrhhtohguugdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvgesphgvthgvrhhtohguugdr ohhrgh X-ME-Proxy: Feedback-ID: i525146e8:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 Mar 2024 11:20:11 -0400 (EDT) Received: by localhost (Postfix, from userid 1000) id 579135F87B; Thu, 28 Mar 2024 15:20:08 +0000 (UTC) Date: Thu, 28 Mar 2024 15:20:08 +0000 From: Peter Todd To: Antoine Riard Cc: Bitcoin Development Mailing List Subject: Re: [bitcoindev] Re: A Free-Relay Attack Exploiting RBF Rule #6 Message-ID: References: <0a377ddb-b001-41ba-9208-27b3fa059bb5n@googlegroups.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Ow6ij1uRJUB9RTze" Content-Disposition: inline In-Reply-To: X-Original-Sender: pete@petertodd.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DIhWEXxb; spf=pass (google.com: domain of pete@petertodd.org designates 64.147.123.152 as permitted sender) smtp.mailfrom=pete@petertodd.org Precedence: list Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com List-ID: X-Google-Group-Id: 786775582512 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Score: -0.8 (/) --Ow6ij1uRJUB9RTze Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline On Thu, Mar 28, 2024 at 02:27:18PM +0000, Peter Todd wrote: > > > Can you explain in more detail how exactly you'd pull that off? Are you > > aware > > of LN implementations that actually create feerate ascending LN states? > > > > I think you can create feerates ascending LN states with today's LN > > implementations by playing with BOLT2's `dust_limit_satoshis`. > > State 1 has 1 dust HTLC trimmed, state 2 has 2 dust HTLCs trimmed, ... > > State N has N dust HTLCs trimmed. > > Correct me if I'm wrong. But I don't believe that the `dust_limit_satoshis` > value can be changed on an existing channel. > > It *should* be possible to change on an existing channel, as the economic dust > limit is fee-rate dependent. But the protocol does not support that yet IIUC. Oh, and to expand on this discussion a bit... Assuming that LN implementations did enable this type of attack, I'll point out that it's essentially based on having incoming liquidity, which is not free. Either you paid for it by paying someone to open channels to you. Or you operated a lightning node that provided sufficiently attractive survice that people chose to open channels to you. Either way getting that incoming capacity cost you money, probably at similar if not worse rates than just borrowing BTC. -- https://petertodd.org 'peter'[:-1]@petertodd.org -- You received this message because you are subscribed to the Google Groups "Bitcoin Development Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an email to bitcoindev+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bitcoindev/ZgWKqIftBCHBppQV%40petertodd.org. --Ow6ij1uRJUB9RTze Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE0RcYcKRzsEwFZ3N5Lly11TVRLzcFAmYFiqUACgkQLly11TVR LzfC4BAAsXNGzqg+Eaf9yg0c5CnlssmoMUSfSucskMx5XFtj6gbcg1kuSLpgR7pn k819+QGpOjdaFsiZGxJqnFjgqftjvkG+DV/LmDX21PTbvvwYXYJ2o3nBNSwVrsXS 8mPsx9Gde3SxP7FKR4M44SBSa/7RQSWaSxJOiUwAJeMunW6/uXj42CE4Ek1VCk8i dLPLdMthrNkApkGLhWefc4ZmacbDb1uW2gm4oh+/utGsjTwIXRVaJ70pnRMo+pgY S0GxWpCAqzi2srSzYLD95S4fVUM7sl0NSr5ffMTUnsIoH20SeSMlNqOjrshTFfue 4AXPMJiiDqOT54def+HnnAPjURkXc642lr0vzecsPvxN+/QCKqiQAV26IexTV8lh m3cYxjgTvTciFab/ZS9eMnmfJIED7pkr4X0NFdGxJ80v8R+DvPOJPZB/789bfFTj lN+A6Y1aAoFDd89Ed7SZoq1NECJT8V+8lyinU4bpcS70jZDB7rdOuMvpSeU2ObLF mncZbtzxYfvfVTVKwfck8P1oQvihnvwlRF+LD3YZdW7N/Z9eBUcefi7R3Ckobw8w EGKXsxK2pLaaGlYkr4wMopLWwQAWc++GMeeU2xRghyhZbO+idCV357pTBMVcIZOd EWBQDzdKA75SS6xAkvEfHKjf5lMhajCQNhvrKSlEe0/60FMjcc8= =B4dU -----END PGP SIGNATURE----- --Ow6ij1uRJUB9RTze--