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

Function pubkey_from_hex

tests/fuzz/fuzz-full_channel.c:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static struct pubkey pubkey_from_hex(const char *hex)
43{
44 struct pubkey pubkey;
45 if (strstarts(hex, "0x"))
46 hex += 2;
47 if (!pubkey_from_hexstr(hex, strlen(hex), &pubkey))
48 assert(false && "pubkey_from_hexstr failed");
49 return pubkey;
50}
51
52/* These helpers invoke the underlying full_channel API and then drive
53 * the full commitment dance (the four steps of sending_commit ->

Callers 1

init_channelsFunction · 0.70

Calls 1

pubkey_from_hexstrFunction · 0.85

Tested by

no test coverage detected