| 367 | } |
| 368 | |
| 369 | CExtPubKey CExtKey::Neuter() const { |
| 370 | CExtPubKey ret; |
| 371 | ret.nDepth = nDepth; |
| 372 | memcpy(ret.vchFingerprint, vchFingerprint, 4); |
| 373 | ret.nChild = nChild; |
| 374 | ret.pubkey = key.GetPubKey(); |
| 375 | ret.chaincode = chaincode; |
| 376 | return ret; |
| 377 | } |
| 378 | |
| 379 | void CExtKey::Encode(unsigned char code[BIP32_EXTKEY_SIZE]) const { |
| 380 | code[0] = nDepth; |