From e7cf2e9149f9cbec36c07d7f02eacc16eaa306f5 Mon Sep 17 00:00:00 2001 From: benk10 Date: Mon, 28 Apr 2025 10:29:27 +0300 Subject: [PATCH] BIP48: Add p2tr script type derivation --- bip-0048.mediawiki | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/bip-0048.mediawiki b/bip-0048.mediawiki index dbfac3f2..4f9090bb 100644 --- a/bip-0048.mediawiki +++ b/bip-0048.mediawiki @@ -99,11 +99,11 @@ Hardened derivation is used at this level. ===Script=== -This level splits the key space into two separate script_type(s). To provide +This level splits the key space into three separate script_type(s). To provide forward compatibility for future script types this specification can be easily extended. -Currently the only script types covered by this BIP are Native Segwit (p2wsh) and -Nested Segwit (p2sh-p2wsh). +Currently the only script types covered by this BIP are Native Segwit (p2wsh), +Nested Segwit (p2sh-p2wsh), and Taproot (p2tr). The following path represents Nested Segwit (p2sh-p2wsh) mainnet, account 0: 1': Nested Segwit (p2sh-p2wsh) m/48'/0'/0'/1'
@@ -111,6 +111,9 @@ The following path represents Nested Segwit (p2sh-p2wsh) mainnet, account 0: The following path represents Native Segwit (p2wsh) mainnet, account 0: 2': Native Segwit (p2wsh) m/48'/0'/0'/2'
+The following path represents Taproot (p2tr) mainnet, account 0: +3': Taproot (p2tr) m/48'/0'/0'/3'
+ The recommended default for wallets is pay to witness script hash m/48'/0'/0'/2'. To add new script types submit a PR to this specification and include it in the list above: @@ -240,6 +243,13 @@ Public derivation is used at this level. |change |second |m / 48' / 1' / 1' / 2' / 1 / 1 +|- +|testnet +|first +|p2tr +|external +|first +|m / 48' / 1' / 0' / 3' / 0 / 0 |}