|
@ -109,7 +109,7 @@ int bech32_encode(char *output, const char *hrp, const uint8_t *data, size_t dat |
|
|
chk ^= 1; |
|
|
chk ^= 1; |
|
|
printf("emit >>>>>>> "); |
|
|
printf("emit >>>>>>> "); |
|
|
for (i = 0; i < chklen; ++i) { |
|
|
for (i = 0; i < chklen; ++i) { |
|
|
*output = charset[(chk >> ((checklen - 1 - i) * 5)) & 0x1f]; |
|
|
*output = charset[(chk >> ((chklen - 1 - i) * 5)) & 0x1f]; |
|
|
printf("%c",*output); |
|
|
printf("%c",*output); |
|
|
output++; |
|
|
output++; |
|
|
} |
|
|
} |
|
|