MCPcopy Create free account
hub / github.com/ElementsProject/lightning / b32_decode

Function b32_decode

common/base32.c:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17u8 *b32_decode(const tal_t *ctx, const char *str, size_t len)
18{
19 u8 *ret = tal_arr(ctx, u8, base32_data_size(str, len));
20
21 base32_chars = base32_lower;
22 if (!base32_decode(str, len, ret, tal_count(ret)))
23 return tal_free(ret);
24 return ret;
25}

Callers 2

wireaddr_from_hostnameFunction · 0.70
runFunction · 0.50

Calls 3

base32_data_sizeFunction · 0.85
base32_decodeFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected