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

Function to_canonical_invstr

common/bolt11.c:739–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737}
738
739const char *to_canonical_invstr(const tal_t *ctx,
740 const char *invstring)
741{
742 if (has_lightning_prefix(invstring))
743 invstring += strlen("lightning:");
744 return str_lowering(ctx, invstring);
745}
746
747/* Extracts signature but does not check it. */
748struct bolt11 *bolt11_decode_nosig(const tal_t *ctx, const char *str,

Callers 4

param_invstringFunction · 0.70
migrate_normalize_invstrFunction · 0.50
param_bolt12_invstringFunction · 0.50
invoice_fetchedFunction · 0.50

Calls 2

has_lightning_prefixFunction · 0.85
str_loweringFunction · 0.85

Tested by

no test coverage detected