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

Function param_pubkey

common/json_param.c:1171–1181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1169}
1170
1171struct command_result *param_pubkey(struct command *cmd, const char *name,
1172 const char *buffer, const jsmntok_t *tok,
1173 struct pubkey **pubkey)
1174{
1175 *pubkey = tal(cmd, struct pubkey);
1176 if (json_to_pubkey(buffer, tok, *pubkey))
1177 return NULL;
1178
1179 return command_fail_badparam(cmd, name, buffer, tok,
1180 "should be a compressed pubkey");
1181}
1182

Callers

nothing calls this directly

Calls 2

json_to_pubkeyFunction · 0.70
command_fail_badparamFunction · 0.70

Tested by

no test coverage detected