| 1169 | } |
| 1170 | |
| 1171 | struct 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 |
nothing calls this directly
no test coverage detected