Skip to content

Commit 19d3b9d

Browse files
committed
bip174: add global xpub field
1 parent 111e427 commit 19d3b9d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bip-0174.mediawiki

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ The currently defined global types are as follows:
118118
*** <tt>{transaction}</tt>
119119
** Note: Every PSBT must have a field with this type.
120120
121+
* Type: Extended Public Key <tt>PSBT_GLOBAL_XPUB = 0x01</tt>
122+
** Key: The type followed by the 78 byte serialized extended public key as defined by BIP 32. Extended public keys are those that can be used to derive public keys used in the inputs and outputs of this transaction. It should be the public key at the highest hardened derivation index so that the unhardened child keys used in the transaction can be derived.
123+
*** <tt>{0x01}|{xpub}</tt>
124+
** Value: The master key fingerprint as defined by BIP 32 concatenated with the derivation path of the public key. The derivation path is represented as 32 bit unsigned integer indexes concatenated with each other. The number of 32 bit unsigned integer indexes must match the depth provided in the extended public key.
125+
*** <tt>{master key fingerprint}|{32-bit int}|...|{32-bit int}</tt>
126+
121127
The currently defined per-input types are defined as follows:
122128

123129
* Type: Non-Witness UTXO <tt>PSBT_IN_NON_WITNESS_UTXO = 0x00</tt>

0 commit comments

Comments
 (0)