Expand the HRP into values for checksum computation.
(hrp)
| 36 | |
| 37 | |
| 38 | def bech32_hrp_expand(hrp): |
| 39 | """Expand the HRP into values for checksum computation.""" |
| 40 | return [ord(x) >> 5 for x in hrp] + [0] + [ord(x) & 31 for x in hrp] |
| 41 | |
| 42 | |
| 43 | def bech32_verify_checksum(hrp, data): |
no outgoing calls
no test coverage detected