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

Function set_pubkey

wire/test/run-peer-wire.c:26–31  ·  view source on GitHub ↗

memsetting pubkeys doesn't work */

Source from the content-addressed store, hash-verified

24
25/* memsetting pubkeys doesn't work */
26static void set_pubkey(struct pubkey *key)
27{
28 u8 der[PUBKEY_CMPR_LEN];
29 memset(der, 2, sizeof(der));
30 assert(pubkey_from_der(der, sizeof(der), key));
31}
32
33static void set_node_id(struct node_id *id)
34{

Callers 1

mainFunction · 0.85

Calls 1

pubkey_from_derFunction · 0.85

Tested by

no test coverage detected