MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Unserialize

Method Unserialize

src/key.h:172–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 }
171 template <typename Stream>
172 void Unserialize(Stream& s)
173 {
174 unsigned int len = ::ReadCompactSize(s);
175 unsigned char code[BIP32_EXTKEY_SIZE];
176 if (len != BIP32_EXTKEY_SIZE)
177 throw std::runtime_error("Invalid extended key size\n");
178 s.read((char *)&code[0], len);
179 Decode(code);
180 }
181};
182
183/** Initialize the elliptic curve support. May not be called twice without calling ECC_Stop first. */

Callers

nothing calls this directly

Calls 3

ReadCompactSizeFunction · 0.85
DecodeFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected