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

Function hsm_get_per_commitment_point

onchaind/onchaind.c:558–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558static void hsm_get_per_commitment_point(struct pubkey *per_commitment_point)
559{
560 u8 *msg = towire_hsmd_get_per_commitment_point(NULL, commit_num);
561 struct secret *unused;
562
563 if (!wire_sync_write(HSM_FD, take(msg)))
564 status_failed(STATUS_FAIL_HSM_IO, "Writing sign_htlc_tx to hsm");
565 msg = wire_sync_read(tmpctx, HSM_FD);
566 if (!msg
567 || !fromwire_hsmd_get_per_commitment_point_reply(tmpctx, msg,
568 per_commitment_point,
569 &unused))
570 status_failed(STATUS_FAIL_HSM_IO,
571 "Reading hsm_get_per_commitment_point_reply: %s",
572 tal_hex(tmpctx, msg));
573}
574
575static struct tracked_output *
576new_tracked_output(struct tracked_output ***outs,

Callers 1

handle_our_unilateralFunction · 0.85

Calls 6

tal_hexFunction · 0.85
wire_sync_writeFunction · 0.50
status_failedFunction · 0.50
wire_sync_readFunction · 0.50

Tested by

no test coverage detected