BIP112: fix example #427

pull jl2012 wants to merge 1 commits into bitcoin:master from jl2012:patch-27 changing 1 files +2 −2
  1. jl2012 commented at 9:12 AM on July 27, 2016: contributor

    CHECK(MULTI)SIG should be used.

  2. BIP112: fix example 1402ca99cb
  3. luke-jr commented at 5:04 PM on July 27, 2016: member
  4. luke-jr commented at 5:04 PM on July 27, 2016: member

    Personally, I think it's preferable to use the VERIFY...

  5. luke-jr added the label Proposed BIP modification on Jul 27, 2016
  6. jl2012 commented at 5:36 PM on July 27, 2016: contributor

    @luke-jr , technically you could do that, which requires an extra push in scriptSig

  7. luke-jr commented at 6:08 PM on July 27, 2016: member

    Why would it need an extra push? AFAIK, OP_CHECK[MULTI]SIGVERIFY behaves exactly as OP_CHECK[MULTI]SIG except that the VERIFY variant short-circuits script execution immediately.

  8. jl2012 commented at 6:44 PM on July 27, 2016: contributor

    Without an extra push the stack will be empty after evaluation, which is invalid

  9. petertodd commented at 10:28 PM on August 18, 2016: contributor

    @luke-jr The easiest way to convince us would be to make such a transaction on mainnet and show that it works. :)

    edit: ah! now I see that @luke-jr was the thumbs-up emoji thing!

  10. petertodd commented at 10:31 PM on August 18, 2016: contributor

    utACK

    Though I'd suggest jl2012 take my advice. :)

  11. btcdrak commented at 10:52 PM on August 18, 2016: contributor

    ACK

  12. luke-jr merged this on Sep 2, 2016
  13. luke-jr closed this on Sep 2, 2016


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 11:10 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me