| 1051 | } |
| 1052 | |
| 1053 | struct 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 |
nothing calls this directly
no test coverage detected