What's the specification of XpubDerivable
?
#8
-
Hi, I'm currently learning this library, but there are no documents or code comments available. I would like to know how This is the format that I have frequently encountered:
Could you please explain how this is generated? Line 624 in a200597 E.G. Why
Perhaps this question may seem silly, but as a newcomer, and there isn't too much material that I can check. I hope you don't mind me submitting this as an issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thank you for your interest to the library! Yes, you are right - docs are not there yet since we are looking into the stabilization of the library (once at least one Bitcoin wallet is released with it) and before that time things may change. So, your question has two aspects: what is
Xpub origin is required to produce valid PSBT files, thus, we do not have an anonymous Terminal derivation provides information about the used keychain (a term from BIP32). Frequently it is simply Finally, you are free to use both |
Beta Was this translation helpful? Give feedback.
Thank you for your interest to the library!
Yes, you are right - docs are not there yet since we are looking into the stabilization of the library (once at least one Bitcoin wallet is released with it) and before that time things may change.
So, your question has two aspects: what is
XpubDerivable
and rationale for formatting its string representation.XpubDerivable
is a structure which contains all necessary information to derive a final public key which will be used by a wallet descriptor for constructing scriptPubkeys and PSBTs. Specifically, it consists of two main parts:XpubSpec
)