| 378 | } |
| 379 | |
| 380 | CExtPubKey CExtKey::Neuter() const { |
| 381 | CExtPubKey ret; |
| 382 | ret.nDepth = nDepth; |
| 383 | memcpy(ret.vchFingerprint, vchFingerprint, 4); |
| 384 | ret.nChild = nChild; |
| 385 | ret.pubkey = key.GetPubKey(); |
| 386 | ret.chaincode = chaincode; |
| 387 | return ret; |
| 388 | } |
| 389 | |
| 390 | void CExtKey::Encode(unsigned char code[BIP32_EXTKEY_SIZE]) const { |
| 391 | code[0] = nDepth; |