|
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
|
|
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
|
-
|
|