X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.h;h=493e9d9517d08b5b5e52fe6dbdcbd1dcf18b9339;hb=ab0e30c40cc589661ceb4f0d09c9373ecaefc3a9;hp=12d8af54ee1fec3ba89ce47f13449619e49094a3;hpb=9c9ba366ebc85b0d8eef6d962a9fa84cffe0cae7;p=novacoin.git diff --git a/src/wallet.h b/src/wallet.h index 12d8af5..493e9d9 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -17,6 +17,7 @@ #include "ui_interface.h" #include "util.h" #include "walletdb.h" +#include "base58.h" extern unsigned int nStakeMaxAge; extern bool fWalletUnlockMintOnly; @@ -161,12 +162,14 @@ public: bool LoadMalleableKeyMetadata(const CMalleableKeyView &keyView, const CKeyMetadata &metadata); // Load malleable key without saving it to disk (used by LoadWallet) - bool LoadMalleableKey(const CMalleableKey &mKey) { return CCryptoKeyStore::AddMalleableKey(mKey); } + bool LoadMalleableKey(const CMalleableKeyView &keyView, const CSecret &vchSecretH) { return CCryptoKeyStore::AddMalleableKey(keyView, vchSecretH); } + bool LoadCryptedMalleableKey(const CMalleableKeyView &keyView, const std::vector &vchCryptedSecretH) { return CCryptoKeyStore::AddCryptedMalleableKey(keyView, vchCryptedSecretH); } bool LoadMinVersion(int nVersion) { nWalletVersion = nVersion; nWalletMaxVersion = std::max(nWalletMaxVersion, nVersion); return true; } // Adds an encrypted key to the store, and saves it to disk. bool AddCryptedKey(const CPubKey &vchPubKey, const std::vector &vchCryptedSecret); + bool AddCryptedMalleableKey(const CMalleableKeyView& keyView, const std::vector &vchCryptedSecretH); // Adds an encrypted key to the store, without saving it to disk (used by LoadWallet) bool LoadCryptedKey(const CPubKey &vchPubKey, const std::vector &vchCryptedSecret) { SetMinVersion(FEATURE_WALLETCRYPT); return CCryptoKeyStore::AddCryptedKey(vchPubKey, vchCryptedSecret); } bool AddCScript(const CScript& redeemScript); @@ -183,7 +186,7 @@ public: bool EncryptWallet(const SecureString& strWalletPassphrase); bool DecryptWallet(const SecureString& strWalletPassphrase); - void GetKeyBirthTimes(std::map &mapKeyBirth) const; + void GetAddresses(std::map &mapAddresses) const; /** Increment the next transaction order id @@ -337,7 +340,7 @@ public: bool GetTransaction(const uint256 &hashTx, CWalletTx& wtx); - bool ExtractAddress(const CScript& scriptPubKey, std::string& addressRet); + bool ExtractAddress(const CScript& scriptPubKey, CBitcoinAddress& addressRet); bool SetDefaultKey(const CPubKey &vchPubKey);