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

Function hsm_sync_req

lightningd/hsm_control.c:307–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307const u8 *hsm_sync_req(const tal_t *ctx, struct lightningd *ld, const u8 *msg)
308{
309 int type = fromwire_peektype(msg);
310 if (!wire_sync_write(ld->hsm_fd, msg))
311 fatal("Writing %s hsm", hsmd_wire_name(type));
312 msg = wire_sync_read(ctx, ld->hsm_fd);
313 if (!msg)
314 fatal("EOF reading from HSM after %s",
315 hsmd_wire_name(type));
316 return msg;
317}
318
319static struct command_result *json_makesecret(struct command *cmd,
320 const char *buffer,

Callers 15

sign_updateFunction · 0.70
delete_channelFunction · 0.70
get_channel_basepointsFunction · 0.70
new_unsaved_channelFunction · 0.70
json_signmessageFunction · 0.70
sign_last_txFunction · 0.70
new_uncommitted_channelFunction · 0.70
sign_and_get_witnessFunction · 0.70

Calls 5

fromwire_peektypeFunction · 0.85
hsmd_wire_nameFunction · 0.85
fatalFunction · 0.70
wire_sync_writeFunction · 0.50
wire_sync_readFunction · 0.50

Tested by

no test coverage detected