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