| 305 | } |
| 306 | |
| 307 | CExtPubKey CExtKey::Neuter() const { |
| 308 | CExtPubKey ret; |
| 309 | ret.nDepth = nDepth; |
| 310 | memcpy(&ret.vchFingerprint[0], &vchFingerprint[0], 4); |
| 311 | ret.nChild = nChild; |
| 312 | ret.pubkey = key.GetPubKey(); |
| 313 | ret.chaincode = chaincode; |
| 314 | return ret; |
| 315 | } |
| 316 | |
| 317 | void CExtKey::Encode(unsigned char code[BIP32_EXTKEY_SIZE]) const { |
| 318 | code[0] = nDepth; |