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

0
56


I’ve just a few 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 would like one other kind of tackle, say P2WPH, then we use totally different commonplace, it this case BIP84 and the trail m/84'/.... And so forth…

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

Second place: hyperlink

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

So I began to assume that method too. That’s, the kind of the tackle is decided 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 assumed till I checked out golang’s implementation of bitcoin pockets. Particularly, it says there that it makes use of solely BIP44 commonplace. For the reason that 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 bought a bit confused and began to assume in a different way about these requirements and the way they’re used. So I’ve a two questions.

1. BIP44 is only a derivation path commonplace, it would not resolve what kind of tackle it’s a must to generate from it? You possibly can generate any “kind” of tackle 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 tackle varieties.

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 corresponding to BIP49 and BIP84 whose function is just to separate keys supposed for a sure kind of tackle 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’ll be able to since it is a derivation path? Really, they only wished to type of level out that in case you use P2VPKH then a distinct derivation path is used, however you’ll be able to nonetheless use the BIP44 derivation path?

LEAVE A REPLY

Please enter your comment!
Please enter your name here