| 35 | } |
| 36 | |
| 37 | static struct command_result *param_b12_offer(struct command *cmd, |
| 38 | const char *name, |
| 39 | const char *buffer, |
| 40 | const jsmntok_t *tok, |
| 41 | struct tlv_offer **offer) |
| 42 | { |
| 43 | char *fail; |
| 44 | *offer = offer_decode(cmd, buffer + tok->start, |
| 45 | tok->end - tok->start, |
| 46 | cmd->ld->our_features, chainparams, &fail); |
| 47 | if (!*offer) |
| 48 | return command_fail_badparam(cmd, name, buffer, tok, fail); |
| 49 | if ((*offer)->signature) |
| 50 | return command_fail_badparam(cmd, name, buffer, tok, |
| 51 | "must be unsigned offer"); |
| 52 | return NULL; |
| 53 | } |
| 54 | |
| 55 | static void hsm_sign_b12(struct lightningd *ld, |
| 56 | const char *messagename, |
nothing calls this directly
no test coverage detected