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

Function rune_from_string

ccan/ccan/rune/coding.c:403–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403struct rune *rune_from_string(const tal_t *ctx, const char *str)
404{
405 u8 hash[32];
406 if (!hex_decode(str, 64, hash, sizeof(hash)))
407 return NULL;
408 if (str[64] != ':')
409 return NULL;
410 return from_string(ctx, str + 65, hash);
411}
412
413char *rune_to_string(const tal_t *ctx, const struct rune *rune)
414{

Callers 3

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

hex_decodeFunction · 0.85
from_stringFunction · 0.85

Tested by 3

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68