Wallet SSC: 0.00000000 / $0
Universal generators Bitcoin, Litecoin segwit bech32 address. Bech32 type p2tr, ltc1 - SecretScan.org

Generator Bitcoin, Litecoin SegWit bech32
(p2wpkh, p2wsh, p2tr) address. Bech32 type ltc etc.

Universal generators step by step, validator Bitcoin segwit bech32 address and
Taproot (p2tr). The final result example in BIP173

0
Private key Hex (64 characters [0-9A-F]) Convertor hex <-> wif
Prefix    Coin / Symbol
1
Compressed public key (0x02 or 0x03 followed by 32 byte X coordinate)
2
SHA-256 hashing on the result of the step 1

SegWit Bech32 p2wpkh address

3
RIPEMD-160 hashing on the result of SHA-256
4
5 bits binary on the result of the step 3
5
Array dec = 'data' on the result of the step 4
64
6
Converts this to an array of 5-bit unsigned integers (base 2^5=32)
7
Add the witness version byte (00) current version is 0.
66
8
Checksum step 6 and the H.R.P (hrp = 'bc' or 'ltc', step 5)
9
Step 7 and step 8
78
10
Map each value to its corresponding character in Bech32Chars
11
Address encoded (p2wpkh): HRP + Separator + Data

SegWit Bech32 p2wsh address

3
Add OP_0 in back of the step 2
4
5 bits binary on the result of the step 3
260
5
Array dec = 'data' on the result of the step 4
106
6
Compute the checksum by using the data from step 5 and the H.R.P
12
Checksum dec
12
7
Append the checksum to result of step 6 (we now have an array of 5-bit integers)
118
8
Map each value to its corresponding character in Bech32Chars 00 -> q, 03 -> r,...
9
Address encoded (p2wsh)
-
Taproot type starting with bc1p

Most of this data has been automatically parsed out of the original source code for each cryptocurrency. Still, there exists chance of bugs/error. Please report any errors to us.

Note:

Import Address Bitcoin SegWit (type P2WSH Bech32) to Electrum Wallet console: importprivkey('p2wpkh:Your_Private_key_WIF')
Our website uses cookies (ie. Cookies) for statistical, advertising and functional. Thanks to them, we can customize the site to your needs. Anyone can accept cookies, or has the ability to disable them in your browser, so you will not collect any information.
Got it