<oembed><type>rich</type><version>1.0</version><author_name>npub1m230cem2yh3mtdzkg32qhj73uytgkyg5ylxsu083n3tpjnajxx4qqa2np2</author_name><author_url>https://nostr.ae/npub1m230cem2yh3mtdzkg32qhj73uytgkyg5ylxsu083n3tpjnajxx4qqa2np2</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2022-02-19&#xA;📝 Original message:&#xA;On Fri, Feb 18, 2022 at 04:38:27PM -0800, Jeremy Rubin wrote:&#xA;&gt; &gt; As I said, it&#39;s a new kind of pinning attack, distinct from other types&#xA;&gt; of pinning attack.&#xA;&gt; &#xA;&gt; I think pinning is &#34;formally defined&#34; as sequences of transactions which&#xA;&gt; prevent or make it less likely for you to make any progress (in terms of&#xA;&gt; units of computation proceeding).&#xA;&#xA;Mentioning &#34;computation&#34; when talking about transactions is misleading:&#xA;blockchain transactions have nothing to do with computation.&#xA;&#xA;&gt; Something that only increases possibility to make progress cannot be&#xA;&gt; pinning.&#xA;&#xA;It is incorrect to say that all use-cases have the property that any version of&#xA;a transaction being mined is progress.&#xA;&#xA;&gt; If you want to call it something else, with a negative connotation, maybe&#xA;&gt; call it &#34;necromancing&#34; (bringing back txns that would otherwise be&#xA;&gt; feerate/fee irrational).&#xA;&#xA;Necromancing might be a reasonable name for attacks that work by getting an&#xA;out-of-date version of a tx mined.&#xA;&#xA;&gt; In particular, for the use case you mentioned &#34;Eg a third party could mess&#xA;&gt; up OpenTimestamps calendars at relatively low cost by delaying the mining&#xA;&gt; of timestamp txs.&#34;, this is incorrect. A third party can only accelerate&#xA;&gt; the mining on the timestamp transactions, but they *can* accelerate the&#xA;&gt; mining of any such timestamp transaction. If you have a single output chain&#xA;&gt; that you&#39;re RBF&#39;ing per block, then at most they can cause you to shift the&#xA;&gt; calendar commits forward one block. But again, they cannot pin you. If you&#xA;&gt; want to shift it back one block earlier, just offer a higher fee for the&#xA;&gt; later RBF&#39;d calendar. Thus the interference is limited by how much you wish&#xA;&gt; to pay to guarantee your commitment is in this block as opposed to the next.&#xA;&#xA;Your understanding of how OpenTimestamps calendars work appears to be&#xA;incorrect. There is no chain of unconfirmed transactions. Rather, OTS calendars&#xA;use RBF to _update_ the timestamp tx with a new merkle tip hash for to all&#xA;outstanding per-second commitments once per new block. In high fee situations&#xA;it&#39;s normal for there to be dozens of versions of that same tx, each with a&#xA;slightly higher feerate.&#xA;&#xA;OTS calendars can handle any of those versions getting mined. But older&#xA;versions getting mined wastes money, as the remaining commitments still need to&#xA;get mined in a subsequent transaction. Those remaining commitments are also&#xA;delayed by the time it takes for the next tx to get mined.&#xA;&#xA;There are many use-cases beyond OTS with this issue. For example, some entities&#xA;use &#34;in-place&#34; replacement for update low-time-preference settlement&#xA;transactions by adding new txouts and updating existing ones. Older versions of&#xA;those settlement transactions getting mined rather than the newer version&#xA;wastes money and delays settlement for the exact same reason it does in OTS.&#xA;&#xA;If fee accounts or any similar mechanism get implemented, they absolutely&#xA;should be opt-in. Obviously, using a currently non-standard nVersion bit is a&#xA;possible approach. Conversely, with CPFP it may be desirable in the settlement&#xA;case to be able to *prevent* outputs from being spent in the same block. Again,&#xA;an nVersion bit is a possible approach.&#xA;&#xA;&gt; By the way, you can already do out-of-band transaction fees to a very&#xA;&gt; similar effect, google &#34;BTC transaction accelerator&#34;. If the attack were at&#xA;&gt; all valuable to perform, it could happen today.&#xA;&#xA;I just checked: all the BTC transaction accellerator services I could find look&#xA;to be either scams, or very expensive. We need compelling reasons to make this&#xA;nuisance attack significantly cheaper.&#xA;&#xA;&gt; Lastly, if you do get &#34;necromanced&#34; on an earlier RBF&#39;d transaction by a&#xA;&gt; third party for OTS, you should be relatively happy because it cost you&#xA;&gt; less fees overall, since the undoing of your later RBF surely returned some&#xA;&gt; satoshis to your wallet.&#xA;&#xA;As I said above, no it doesn&#39;t.&#xA;&#xA;-- &#xA;https://petertodd.org &#39;peter&#39;[:-1]@petertodd.org&#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/20220219/e3194806/attachment-0001.sig&gt;</html></oembed>