From 1945eda0c2128a29b5537b10daef937bbe27b42b Mon Sep 17 00:00:00 2001
From: Nicolas Dorier <nicolas.dorier@gmail.com>
Date: Thu, 5 Aug 2021 15:49:41 +0900
Subject: [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`.
---
 bip-0078.mediawiki | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'bip-0078.mediawiki')

diff --git a/bip-0078.mediawiki b/bip-0078.mediawiki
index 3c2fe2e..363f551 100644
--- a/bip-0078.mediawiki
+++ b/bip-0078.mediawiki
@@ -229,6 +229,9 @@ Our recommendation for <code>maxadditionalfeecontribution=</code> is <code>origi
 |-
 |P2SH-P2WPKH
 |91
+|-
+|P2TR
+|58
 |}
 
 
-- 
cgit v1.2.3

