Friday, November 22, 2024

pockets – Does the used commonplace (BIP44, BIP49, BIP84) outline the kind of addresses used?

I’ve a number of questions concerning wallets and BIP44/49/89 requirements.

In lots of locations I discovered that BIP44 is used for conventional addresses (P2PKH) and that the trail is m/44'/.... Additionally, if we wish one other sort of deal with, say P2WPH, then we use completely different commonplace, it this case BIP84 and the trail m/84'/..., and so forth…

One of many locations I discovered it might be the next reply: hyperlink.

Second place: hyperlink. Andrew Chow wrote the next:

By this logic, the xprv and xpub prefixes used beforehand then
point out that legacy addresses must be made. Therefore BIP 44 reveals
xprv.

So I began to assume that approach too. That’s, the kind of the deal with is set by the usual used. So:

  1. BIP44 – conventional addresses (P2PKH), XPUB (it is outlined in BIP32 however used right here), m/44'/... derivation path
  2. BIP49 – P2WPKH-nested-in-P2SH, YPUB, m/49'/... derivation path
  3. BIP84 – P2WPH, ZPUB, m/84'/... derivation path

That is what I believed till I checked out golang’s implementation of bitcoin pockets. Particularly, it says there that it makes use of solely BIP44 commonplace. Because the given pockets is used (I assume) for all addresses (not simply P2PKH, P2WPKH-nested-in-P2SH and P2WPH, however for all as many as there are), I obtained a bit confused and began to assume otherwise about these requirements and the way they’re used. So I’ve a two questions.

1. BIP44 is only a derivation path commonplace, it does not resolve what sort of deal with it’s important to generate from it? You’ll be able to generate any “sort” of deal with you need and that is simply how the golang bitcoin pockets works? It makes use of the BIP44 derivation path, however leaf-level tree keys are used for all deal with sorts.

2. Though BIP44 can be utilized for all addresses (if the reply to the earlier query is sure), there are additionally requirements that outline different derivation paths similar to BIP49 and BIP84 whose function is just to separate keys meant for a sure sort of deal with to different derivation paths, nothing however that? However even when, for instance, BIP84 says it is for P2WPKH, it is only a derivation path, nothing else. I imply, you can too use P2PKH right here (it is bizarre, however you possibly can) since it is a derivation path? Really, they only needed to form of level out that when you use P2WPKH then a distinct derivation path is used, however you possibly can nonetheless use the BIP44 derivation path?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles