BIP 440/441: document varops budget edge cases and other clarifications #2231

pull jmoik wants to merge 5 commits into bitcoin:master from jmoik:gsr changing 2 files +21 −14
  1. jmoik commented at 4:28 PM on August 1, 2026: none

    Updates BIP 440 and BIP 441:

    1. document mixed-version resource limits, including the potential 2× validation cost of adversarial input mixing
    2. add the missing OP_BOOLAND entry to BIP 441
    3. clarify postcharging for linear operations, precharging for expensive operations, and conditional signature-check costs
    4. apply the conditional signature-check formulas to BIP 441
    5. update BIP 441’s reference implementation link to the gsr-core branch
  2. jonatack added the label BIP Update by Owner on Aug 1, 2026
  3. murchandamus commented at 3:35 PM on August 12, 2026: member

    I haven’t looked at this yet, because it is marked as a draft pull request. Is this still waiting for someone’s review in particular or was that perhaps an oversight?

  4. BIP-0440: document mixed-version resource limits defb3fcd95
  5. BIP-0441: add OP_BOOLAND to varops cost list 00a5bb87b3
  6. BIP-0440: clarify varops charging rules
    Document bounded linear postcharging and require superlinear operations and signature checks to be precharged.
    
    Charge SIGCHECK only for nonempty signature operands.
    f3360275bf
  7. BIP-0441: clarify conditional sigcheck costs
    Define sigcheck_cost from signature emptiness and apply it to CHECKSIG, CHECKSIGVERIFY, and CHECKSIGADD.
    d536a811c5
  8. BIP-0441: update reference implementation branch ec838b7273
  9. jmoik force-pushed on Aug 12, 2026
  10. jmoik commented at 4:08 PM on August 12, 2026: none

    I haven’t looked at this yet, because it is marked as a draft pull request. Is this still waiting for someone’s review in particular or was that perhaps an oversight?

    This was intended, still discussing the approach with Rusty, I have now force pushed over the original commits and only applied a note describing this mixed-version resource limit issue, instead of complicating the budget calculation when mixed-version inputs are present.

    I will move it to "Ready for review" when it's clear.

  11. jmoik renamed this:
    BIP 440/441: adjust varops budget calculation and add missing OP_BOOLAND
    BIP 440/441: document varops budget edge cases and other clarifications
    on Aug 14, 2026

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-08-23 23:10 UTC

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