| 383 | } |
| 384 | |
| 385 | void CExtPubKey::DecodeWithVersion(const unsigned char code[BIP32_EXTKEY_WITH_VERSION_SIZE]) |
| 386 | { |
| 387 | memcpy(version, code, 4); |
| 388 | Decode(&code[4]); |
| 389 | } |
| 390 | |
| 391 | bool CExtPubKey::Derive(CExtPubKey &out, unsigned int _nChild) const { |
| 392 | out.nDepth = nDepth + 1; |