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

Function create_enctlv

common/blindedpath.c:291–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291u8 *create_enctlv(const tal_t *ctx,
292 const struct privkey *blinding,
293 const struct pubkey *node,
294 const struct pubkey *next_node,
295 size_t padlen,
296 const struct pubkey *next_blinding_override,
297 struct privkey *next_blinding,
298 struct pubkey *node_alias)
299{
300 struct tlv_encrypted_data_tlv *encmsg = tlv_encrypted_data_tlv_new(tmpctx);
301 if (padlen)
302 encmsg->padding = tal_arrz(encmsg, u8, padlen);
303 encmsg->next_node_id = cast_const(struct pubkey *, next_node);
304 encmsg->next_blinding_override = cast_const(struct pubkey *, next_blinding_override);
305
306 return enctlv_from_encmsg(ctx, blinding, node, encmsg,
307 next_blinding, node_alias);
308}
309
310u8 *create_final_enctlv(const tal_t *ctx,
311 const struct privkey *blinding,

Callers 4

json_blindedpathFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
send_modern_messageFunction · 0.85

Calls 1

enctlv_from_encmsgFunction · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68