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

Function hsm_is_capable

common/hsm_capable.c:7–14  ·  view source on GitHub ↗

Is this capability supported by the HSM? (So far, always a message * number) */

Source from the content-addressed store, hash-verified

5/* Is this capability supported by the HSM? (So far, always a message
6 * number) */
7bool hsm_is_capable(const u32 *capabilities, u32 msgtype)
8{
9 for (size_t i = 0; i < tal_count(capabilities); i++) {
10 if (capabilities[i] == msgtype)
11 return true;
12 }
13 return false;
14}

Callers 1

hsm_capableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected