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

Function param_pubkey

common/json_param.c:1053–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051}
1052
1053struct command_result *param_pubkey(struct command *cmd, const char *name,
1054 const char *buffer, const jsmntok_t *tok,
1055 struct pubkey **pubkey)
1056{
1057 *pubkey = tal(cmd, struct pubkey);
1058 if (json_to_pubkey(buffer, tok, *pubkey))
1059 return NULL;
1060
1061 return command_fail_badparam(cmd, name, buffer, tok,
1062 "should be a compressed pubkey");
1063}
1064

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.85
json_to_pubkeyFunction · 0.70

Tested by

no test coverage detected