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

Function fromwire_ext_key

common/bip32.c:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void fromwire_ext_key(const u8 **cursor, size_t *max, struct ext_key *bip32)
19{
20 const u8 *in = fromwire(cursor, max, NULL, BIP32_SERIALIZED_LEN);
21 if (!in)
22 return;
23
24 if (bip32_key_unserialize(in, BIP32_SERIALIZED_LEN, bip32) != WALLY_OK)
25 fromwire_fail(cursor, max);
26}
27
28void fromwire_bip32_key_version(const u8** cursor, size_t *max,
29 struct bip32_key_version *version)

Callers 1

runFunction · 0.85

Calls 2

fromwireFunction · 0.50
fromwire_failFunction · 0.50

Tested by

no test coverage detected