| 1437 | } |
| 1438 | |
| 1439 | static struct command_result *payersign_done(struct command *cmd, |
| 1440 | const char *buf, |
| 1441 | const jsmntok_t *result, |
| 1442 | struct sent *sent) |
| 1443 | { |
| 1444 | const jsmntok_t *sig; |
| 1445 | |
| 1446 | sent->inv->refund_signature = tal(sent->inv, struct bip340sig); |
| 1447 | sig = json_get_member(buf, result, "signature"); |
| 1448 | json_to_bip340sig(buf, sig, sent->inv->refund_signature); |
| 1449 | |
| 1450 | return sign_invoice(cmd, sent); |
| 1451 | } |
| 1452 | |
| 1453 | /* They're offering a refund, so we need to sign with same key as used |
| 1454 | * in initial payment. */ |
nothing calls this directly
no test coverage detected