| 696 | }; |
| 697 | |
| 698 | static const struct decoder *find_decoder(char c) |
| 699 | { |
| 700 | for (size_t i = 0; i < ARRAY_SIZE(decoders); i++) { |
| 701 | if (decoders[i].letter == c) |
| 702 | return decoders + i; |
| 703 | } |
| 704 | return NULL; |
| 705 | } |
| 706 | |
| 707 | static bool bech32_decode_alloc(const tal_t *ctx, |
| 708 | const char **hrp_ret, |
no outgoing calls
no test coverage detected