MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / DecodeWithVersion

Method DecodeWithVersion

src/pubkey.cpp:409–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409void CExtPubKey::DecodeWithVersion(const unsigned char code[BIP32_EXTKEY_WITH_VERSION_SIZE])
410{
411 memcpy(version, code, 4);
412 Decode(&code[4]);
413}
414
415bool CExtPubKey::Derive(CExtPubKey &out, unsigned int _nChild, uint256* bip32_tweak_out) const {
416 if (nDepth == std::numeric_limits<unsigned char>::max()) return false;

Callers 1

UnserializeMethod · 0.80

Calls 1

DecodeFunction · 0.85

Tested by

no test coverage detected