BP-WG / bp-std

Modern & lightweight implementation of bitcoin standards without rust-bitcoin/miniscript dependencies
Apache License 2.0
16 stars 17 forks source link

[Question] What's the specification of `XpubDerivable`? #7

Closed AurevoirXavier closed 9 months ago

AurevoirXavier commented 9 months ago

Hi, I'm currently learning this library, but there are no documents or code comments available.

I would like to know how XpubDerivable str has been defined because it doesn't seem like a common one.

This is the format that I have frequently encountered:

[ccf488ef/m/84'/0'/0']xpub6DA9Gjn12MVZqNV96tL7dZDzzbg6BxYH4JJQmPJRKHASamJEe1X9NSKW8vgjhsevrP3qVbed2BjQcE4Qfk54bgsxUjMerN7iUTQxkXREwiu/*

Could you please explain how this is generated? https://github.com/BP-WG/bp-std/blob/a2005978df1078c3ea55c11db27693c9cd5a9052/std/src/xpub.rs#L624

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.