Is there authoritative documentation on learn how to generate a P2WPKH tackle? – CoinNewsTrend

Is there authoritative documentation on learn how to generate a P2WPKH tackle?

[ad_1]

I Googled and located some BIPs however wanting via bitcoincore.org, I couldn’t discover documentation on the method to generate a P2WPKH tackle.

Wanting via different random articles, I see the method is roughly one thing like:

  1. Begin with a compressed public key
  2. Carry out SHA-256 adopted by RIPEMD-160 hashing on it
  3. Add a witness model byte
  4. Encode utilizing Bech32

Once more, these are simply random web articles so not authoritative and could also be lacking steps and/or necessary particulars.

So the place can I discover one thing authoritative? If a supply does not exist, how is one meant to implement the steps required to generate?

[ad_2]

Supply hyperlink