public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: Greg Sanders <gsanders87@gmail•com>
To: Peter Todd <pete@petertodd•org>
Cc: Bitcoin Protocol Discussion <bitcoin-dev@lists•linuxfoundation.org>
Subject: Re: [bitcoin-dev] Ephemeral Anchors: Fixing V3 Package RBF againstpackage limit pinning
Date: Fri, 3 Feb 2023 21:07:29 -0500	[thread overview]
Message-ID: <CAB3F3Dtuxu8m6+pU_xBwh=35MyPF90OSnB4vhaNbKpr_ap2shw@mail.gmail.com> (raw)
In-Reply-To: <Y92GY7s1U4P9fC/f@petertodd.org>

[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]

I'm not particularly persuaded, but also not wedded to either idea.

Fixed up tests for the OP_TRUE case here:
https://github.com/instagibbs/bitcoin/tree/ephemeral-anchors-true

On Fri, Feb 3, 2023 at 5:10 PM Peter Todd <pete@petertodd•org> wrote:

> On Thu, Feb 02, 2023 at 03:47:28PM -0500, Greg Sanders wrote:
> > > OP_TRUE is the obvious way to do this, and it results with a 1 on the
> > stack,
> > which plays better with other standardness rules.
> >
> > What other standardness rules? MINAMALIF? How does that interact with the
> > proposal?
>
> It makes sense to require scripts to leave just a single OP_TRUE on the
> stack
> at the end of execution, as otherwise that can be a source of malleability
> in
> certain circumstances where the scriptSig ends up providing the OP_TRUE. I
> don't believe we actually implement this as a rule right now. But you could
> easily imagine that happening in a future upgrade.
>
> Leaving an OP_2 on the stack doesn't achieve that and would require a
> special-cased workaround. Spending the time now to do the obvious thing -
> use
> OP_TRUE as the canonical anyone-can-spend output - avoids this issue.
>
> --
> https://petertodd.org 'peter'[:-1]@petertodd.org
>

[-- Attachment #2: Type: text/html, Size: 1830 bytes --]

  reply	other threads:[~2023-02-04  2:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-18 13:52 [bitcoin-dev] Ephemeral Anchors: Fixing V3 Package RBF against package " Greg Sanders
2022-10-18 15:33 ` [bitcoin-dev] Ephemeral Anchors: Fixing V3 Package RBF againstpackage " Arik Sosman
2022-10-18 15:51   ` Greg Sanders
2022-10-18 16:41     ` Jeremy Rubin
2022-10-18 18:18       ` Greg Sanders
2022-10-19 15:11       ` James O'Beirne
2022-10-20 13:42         ` Greg Sanders
2022-10-27  9:37           ` Johan Torås Halseth
2022-11-30 15:32           ` Greg Sanders
2023-01-27 14:05             ` Greg Sanders
2023-02-02 14:52               ` Peter Todd
2023-02-02 14:59                 ` Greg Sanders
2023-02-02 15:06                   ` Peter Todd
2023-02-02 18:36                     ` Greg Sanders
2023-02-02 20:22                       ` Peter Todd
2023-02-02 20:47                         ` Greg Sanders
2023-02-03 22:10                           ` Peter Todd
2023-02-04  2:07                             ` Greg Sanders [this message]
2023-02-04 16:02                               ` Peter Todd
2023-03-13 16:38                                 ` Greg Sanders
2022-10-19  0:33 ` [bitcoin-dev] Ephemeral Anchors: Fixing V3 Package RBF against package " Antoine Riard
2022-10-19 13:22   ` Greg Sanders

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAB3F3Dtuxu8m6+pU_xBwh=35MyPF90OSnB4vhaNbKpr_ap2shw@mail.gmail.com' \
    --to=gsanders87@gmail$(echo .)com \
    --cc=bitcoin-dev@lists$(echo .)linuxfoundation.org \
    --cc=pete@petertodd$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox