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

Function payersign_done

plugins/fetchinvoice.c:1439–1451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1437}
1438
1439static 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. */

Callers

nothing calls this directly

Calls 3

json_to_bip340sigFunction · 0.85
sign_invoiceFunction · 0.85
json_get_memberFunction · 0.50

Tested by

no test coverage detected