From c583f4dcbe78c2520be20067203ae2737bbca369 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Mon, 21 Jun 2021 16:58:45 -0400 Subject: Specify BIP 371 Taproot Fields for PSBT Add bip-0371.mediawiki, update readme, and update BIP 174 with new field types. --- bip-0174.mediawiki | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) (limited to 'bip-0174.mediawiki') diff --git a/bip-0174.mediawiki b/bip-0174.mediawiki index f3de964..5317b4f 100644 --- a/bip-0174.mediawiki +++ b/bip-0174.mediawiki @@ -428,6 +428,72 @@ The currently defined per-input types are defined as follows: | 2 | [[bip-psb2.mediawiki|psbt2]] |- +| Taproot Key Spend Signature +| PSBT_IN_TAP_KEY_SIG = 0x13 +| None +| No key data +| +| The 64 or 65 byte Schnorr signature for key path spending a Taproot output. Finalizers should remove this field after PSBT_IN_FINAL_SCRIPTWITNESS is constructed. +| +| +| 0, 2 +| [[bip-0371.mediawiki|371]] +|- +| Taproot Script Spend Signature +| PSBT_IN_TAP_SCRIPT_SIG = 0x14 +| +| A 32 byte X-only public key involved in a leaf script concatenated with the 32 byte hash of the leaf it is part of. +| +| The 64 or 65 byte Schnorr signature for this pubkey and leaf combination. Finalizers should remove this field after PSBT_IN_FINAL_SCRIPTWITNESS is constructed. +| +| +| 0, 2 +| [[bip-0371.mediawiki|371]] +|- +| Taproot Leaf Script +| PSBT_IN_TAP_LEAF_SCRIPT = 0x15 +| +| The control block for this leaf as specified in BIP 341. The control block contains the merkle tree path to this leaf. +|