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

Function enctlv_from_encmsg

common/blindedpath.c:117–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117static u8 *enctlv_from_encmsg(const tal_t *ctx,
118 const struct privkey *blinding,
119 const struct pubkey *node,
120 const struct tlv_encrypted_data_tlv *encmsg,
121 struct privkey *next_blinding,
122 struct pubkey *node_alias)
123{
124 u8 *encmsg_raw = tal_arr(NULL, u8, 0);
125 towire_tlv_encrypted_data_tlv(&encmsg_raw, encmsg);
126 return enctlv_from_encmsg_raw(ctx, blinding, node, take(encmsg_raw),
127 next_blinding, node_alias);
128}
129
130bool unblind_onion(const struct pubkey *blinding,
131 void (*ecdh)(const struct pubkey *point, struct secret *ss),

Callers 2

create_enctlvFunction · 0.85
create_final_enctlvFunction · 0.85

Calls 1

enctlv_from_encmsg_rawFunction · 0.85

Tested by

no test coverage detected