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

Function towire_secrets

common/derive_basepoints.c:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

towire_privkeyFunction · 0.85
towire_secretFunction · 0.85
abortFunction · 0.85

Tested by

no test coverage detected