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

Function b32_encode

common/base32.c:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6static const char base32_lower[] = "abcdefghijklmnopqrstuvwxyz234567=";
7
8char *b32_encode(const tal_t *ctx, const void *data, size_t len)
9{
10 char *str = tal_arr(ctx, char, base32_str_size(len));
11
12 base32_chars = base32_lower;
13 base32_encode(data, len, str, tal_count(str));
14 return str;
15}
16
17u8 *b32_decode(const tal_t *ctx, const char *str, size_t len)
18{

Callers 2

runFunction · 0.50

Calls 2

base32_str_sizeFunction · 0.85
base32_encodeFunction · 0.85

Tested by

no test coverage detected