BIP 440, 441: revise costs from measured primitives #2358

pull jmoik wants to merge 3 commits into bitcoin:master from jmoik:gsr-440-441 changing 2 files +266 −386
  1. jmoik commented at 5:14 PM on November 16, 2026: none

    Update to BIP 440 and BIP 441 (version 0.3.0).

    BIP 440:

    • only Tapleaf 0xc2 inputs fund the budget; legacy, witness v0, key path and Tapleaf 0xc0 inputs no longer do
    • flat cost for every opcode and literal push
    • variable costs composed from measured primitives, priced from benchmarks on several machines
    • one SIGCHECK per elliptic curve operation
    • security considerations for the shared budget

    BIP 441:

    • opcode costs composed from BIP 440's primitives
    • five opcode definitions corrected
    • states that BIP 342's sigops budget does not apply
    • security considerations
  2. BIP-0440: revise funding and price opcodes from measured primitives c877e34c1d
  3. BIP-0441: correct five opcode definitions and list all opcodes that read numbers dd15422f24
  4. BIP-0441: price opcodes from BIP440's cost primitives df35360937
  5. murchandamus added the label BIP Update by Owner on Nov 16, 2026
  6. jonatack commented at 9:14 PM on November 16, 2026: member

    Concept ACK. Are you looking for reviews from any particular people, or independent/additional benchmarks on hardware?

  7. jmoik commented at 7:57 PM on November 17, 2026: none

    Concept ACK. Are you looking for reviews from any particular people, or independent/additional benchmarks on hardware?

    An interesting benchmark would be from a non Apple Arm64 chip like a Snapdragon X, but I don't think it's required for this PR, the exact values can easily be adjusted in the future, and since each price covers the slowest of the existing seven machines, any additional machine would only change a price if it is slower than all of the existing ones, relative to its own reference workload, which is unlikely.

    I would be delighted to see review by @ajtowns, @instagibbs, @darosior, who showed interest in the budget in the past, but from our side this is ready.

    this page also summarizes and visualizes the calibration: https://jmoik.github.io/varopsData/report/calibration.html

  8. murchandamus commented at 6:21 PM on November 18, 2026: member

    Concept ACK

    I would be delighted to see review by @ajtowns, @instagibbs, @darosior, who showed interest in the budget in the past, but from our side this is ready.

    Okay, let’s keep this open for a couple weeks or so, but happy to merge it when you want it merged.


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-11-24 00:10 UTC

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