add bip32 pubkey serialization

CExtPubKey should be serializable like CPubKey
This commit is contained in:
Jonas Schnelli
2015-06-01 16:35:19 +02:00
committed by Jonas Schnelli
parent e6a4d48a9b
commit 90604f16af
6 changed files with 71 additions and 12 deletions

View File

@@ -164,7 +164,7 @@ public:
CBitcoinExtKeyBase() {}
};
typedef CBitcoinExtKeyBase<CExtKey, 74, CChainParams::EXT_SECRET_KEY> CBitcoinExtKey;
typedef CBitcoinExtKeyBase<CExtPubKey, 74, CChainParams::EXT_PUBLIC_KEY> CBitcoinExtPubKey;
typedef CBitcoinExtKeyBase<CExtKey, BIP32_EXTKEY_SIZE, CChainParams::EXT_SECRET_KEY> CBitcoinExtKey;
typedef CBitcoinExtKeyBase<CExtPubKey, BIP32_EXTKEY_SIZE, CChainParams::EXT_PUBLIC_KEY> CBitcoinExtPubKey;
#endif // BITCOIN_BASE58_H