I Googled and found some BIPs but looking through bitcoincore.org, I could not find documentation on the process to generate a P2WPKH address.
Looking through other random articles, I see the process is roughly something like:
- Start with a compressed public key
- Perform SHA-256 followed by RIPEMD-160 hashing on it
- Add a witness version byte
- Encode using Bech32
Again, these are just random internet articles so not authoritative and may be missing steps and/or important details.
So where can I find something authoritative? If a source doesn't exist, how is one meant to implement the steps required to generate?