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

Function towire_ext_key

common/bip32.c:7–16  ·  view source on GitHub ↗

We only ever send out the public seed. */

Source from the content-addressed store, hash-verified

5
6/* We only ever send out the public seed. */
7void towire_ext_key(u8 **pptr, const struct ext_key *bip32)
8{
9 unsigned char out[BIP32_SERIALIZED_LEN];
10
11 if (bip32_key_serialize(bip32, BIP32_FLAG_KEY_PUBLIC, out,
12 sizeof(out)))
13 abort();
14
15 towire(pptr, out, sizeof(out));
16}
17
18void fromwire_ext_key(const u8 **cursor, size_t *max, struct ext_key *bip32)
19{

Callers 1

runFunction · 0.85

Calls 2

abortFunction · 0.85
towireFunction · 0.50

Tested by

no test coverage detected