[BIP78] Recommended fee rate estimation for P2TR #1152

pull NicolasDorier wants to merge 1 commits into bitcoin:master from NicolasDorier:patch-14 changing 1 files +3 −0
  1. NicolasDorier commented at 6:50 AM on August 5, 2021: contributor

    Non-Witness:

    Outpoint size = 32+4 Sequence size = 4 ScriptSig VarInt Size= 1

    Witness:

    WitScript VarInt Size= 1 Then script itself: 65 signature size + 1 byte of push opcode

    (32 + 4 + 4 + 1) + (65+1+1)/4=57.75, rounded up 58.

    We assume 65 of signature size rather than 64, since we can't assume the sighash to be Default.

  2. [BIP78] Recommended fee rate estimation for P2TR
    Non-Witness: 
    
    Outpoint size = 32+4
    Sequence size = 4
    ScriptSig VarInt Size= 1
    
    Witness: 
    
    WitScript VarInt Size= 1
    Then script itself: 65 signature size + 1 byte of push opcode
    
    `(32 + 4 + 4 + 1) + (65+1+1)/4=57.75`, rounded up `58`.
    
    We assume 65 of signature size rather than 64, since we can't assume the sighash to be `Default`.
    1945eda0c2
  3. luke-jr merged this on Aug 29, 2021
  4. luke-jr closed this on Aug 29, 2021

  5. NicolasDorier deleted the branch on Sep 1, 2021
Contributors

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 15:10 UTC

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