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

Function any_field_outside_range

common/bolt12.c:845–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845const struct tlv_field *any_field_outside_range(const struct tlv_field *fields,
846 bool ignore_signature_fields,
847 size_t r1_start, size_t r1_end,
848 size_t r2_start, size_t r2_end)
849{
850 for (size_t i = 0; i < tal_count(fields); i++) {
851 if (ignore_signature_fields
852 && is_bolt12_signature_field(fields[i].numtype))
853 continue;
854 if (!in_ranges(fields[i].numtype,
855 r1_start, r1_end,
856 r2_start, r2_end))
857 return &fields[i];
858 }
859 return NULL;
860}
861
862bool bolt12_bip353_valid_string(const u8 *str, size_t len)
863{

Callers 4

offer_decodeFunction · 0.85
invrequest_decodeFunction · 0.85
handle_invoice_requestFunction · 0.85
param_invreqFunction · 0.85

Calls 2

in_rangesFunction · 0.85

Tested by

no test coverage detected