MCPcopy Create free account
hub / github.com/LUX-Core/lux / Serialize

Method Serialize

src/key.h:192–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190 void SetMaster(const unsigned char* seed, unsigned int nSeedLen);
191 template <typename Stream>
192 void Serialize(Stream& s, int nType, int nVersion) const
193 {
194 unsigned int len = BIP32_EXTKEY_SIZE;
195 ::WriteCompactSize(s, len);
196 unsigned char code[BIP32_EXTKEY_SIZE];
197 Encode(code);
198 s.write((const char *)&code[0], len);
199 }
200 template <typename Stream>
201 void Unserialize(Stream& s, int nType, int nVersion)
202 {

Callers

nothing calls this directly

Calls 3

WriteCompactSizeFunction · 0.85
EncodeFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected