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

Function towire_secrets

common/derive_basepoints.c:10–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8struct sha256 *dev_force_channel_secrets_shaseed;
9
10void towire_secrets(u8 **pptr, const struct secrets *s)
11{
12 towire_privkey(pptr, &s->funding_privkey);
13 towire_secret(pptr, &s->revocation_basepoint_secret);
14 towire_secret(pptr, &s->payment_basepoint_secret);
15 towire_secret(pptr, &s->delayed_payment_basepoint_secret);
16 towire_secret(pptr, &s->htlc_basepoint_secret);
17}
18
19void fromwire_secrets(const u8 **ptr, size_t *max, struct secrets *s)
20{

Callers

nothing calls this directly

Calls 2

towire_privkeyFunction · 0.85
towire_secretFunction · 0.85

Tested by

no test coverage detected