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

Function hsm_sync_req

lightningd/hsm_control.c:305–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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