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

Function has_lightning_prefix

common/bolt11.c:729–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727}
728
729static bool has_lightning_prefix(const char *invstring)
730{
731 /* BOLT #11:
732 *
733 * If a URI scheme is desired, the current recommendation is to either
734 * use 'lightning:' as a prefix before the BOLT-11 encoding */
735 return (strstarts(invstring, "lightning:") ||
736 strstarts(invstring, "LIGHTNING:"));
737}
738
739const char *to_canonical_invstr(const tal_t *ctx,
740 const char *invstring)

Callers 1

to_canonical_invstrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected