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

Function any_field_outside_range

common/bolt12.c:865–880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865const struct tlv_field *any_field_outside_range(const struct tlv_field *fields,
866 bool ignore_signature_fields,
867 size_t r1_start, size_t r1_end,
868 size_t r2_start, size_t r2_end)
869{
870 for (size_t i = 0; i < tal_count(fields); i++) {
871 if (ignore_signature_fields
872 && is_bolt12_signature_field(fields[i].numtype))
873 continue;
874 if (!in_ranges(fields[i].numtype,
875 r1_start, r1_end,
876 r2_start, r2_end))
877 return &fields[i];
878 }
879 return NULL;
880}
881
882bool bolt12_bip353_valid_string(const u8 *str, size_t len)
883{

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