Wednesday, September 10, 2025
HomeBitcoinGoal of BIP32_DERIVATION keys in PSBT

Goal of BIP32_DERIVATION keys in PSBT

Simply attempting to grasp the principle advantages of together with PSBT_IN_BIP32_DERIVATION and
PSBT_OUT_BIP32_DERIVATION in a PSBT.

Are they primarily helpful for 2 causes:

  1. Permitting the signer to detect change outputs rapidly.
  2. Permitting the signer to seek out the right non-public key to signal with extra simply.

Am I proper in pondering {that a} signer can do each of this stuff with out both of those keys, however including them makes it simpler?

For instance, when detecting change, you might have a look at the addresses on the outputs and scan for that handle within the pockets’s HD tree. However through the use of the PSBT_IN_BIP32_DERIVATION and
PSBT_OUT_BIP32_DERIVATION information you might simply verify if the grasp fingerprint on an output is identical because the grasp fingerprint on an enter (and in addition verify the derivation path on the output to see if it is the “change” department of the tree)?

Equally, when signing, you might use the enter’s ScriptPubKey to work out the handle, then manually search via the tree to seek out its corresponding non-public key. However through the use of PSBT_IN_BIP32_DERIVATION you should use the derivation path given in an enter map to rapidly derive the non-public key to signal the enter with?

Sorry for all of the questions. I am mainly simply questioning what the principle sensible advantages are, and in the event that they’re largely there to assist make signing and alter detection simpler for the pockets (however might nonetheless be achieved with out them).

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments