Compute a blech32 string given HRP and data values.
(hrp, data)
| 37 | # ^ 5 ^ 6 |
| 38 | |
| 39 | def blech32_encode(hrp, data): |
| 40 | """Compute a blech32 string given HRP and data values.""" |
| 41 | combined = data + blech32_create_checksum(hrp, data) |
| 42 | return hrp + '1' + ''.join([CHARSET[d] for d in combined]) |
| 43 | |
| 44 | |
| 45 | def blech32_decode(bech): |
no test coverage detected