X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.h;h=4db32e52bec4de18804cc96f133db86cdbcb5039;hp=b3d7d33e5d919f980b8cb2454836bf0111d697c9;hb=9e58e0a8ca28b15a4bfa677f5b23891972db40fd;hpb=db1eaec482383385156b3e7cb6b2baa9454975f0 diff --git a/src/wallet.h b/src/wallet.h index b3d7d33..4db32e5 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -158,7 +158,7 @@ public: CMalleableKeyView GenerateNewMalleableKey(); // Adds a key to the store, and saves it to disk. bool AddKey(const CKey& key); - bool AddMalleableKey(const CMalleableKey& mKey); + bool AddKey(const CMalleableKey& mKey); // Adds a key to the store, without saving it to disk (used by LoadWallet) bool LoadKey(const CKey& key) { return CCryptoKeyStore::AddKey(key); } // Load metadata (used by LoadWallet) @@ -166,8 +166,8 @@ public: bool LoadKeyMetadata(const CMalleableKeyView &keyView, const CKeyMetadata &metadata); // Load malleable key without saving it to disk (used by LoadWallet) - 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 LoadKey(const CMalleableKeyView &keyView, const CSecret &vchSecretH) { return CCryptoKeyStore::AddMalleableKey(keyView, vchSecretH); } + bool LoadCryptedKey(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; } @@ -191,6 +191,7 @@ public: bool DecryptWallet(const SecureString& strWalletPassphrase); void GetAddresses(std::map &mapAddresses) const; + bool GetPEM(const CKeyID &keyID, const std::string &fileName, const SecureString &strPassPhrase) const; /** Increment the next transaction order id @@ -319,6 +320,8 @@ public: DBErrors ZapWalletTx(); + bool SetAddressBookName(const CTxDestination& address, const std::string& strName); + bool SetAddressBookName(const CBitcoinAddress& address, const std::string& strName); bool DelAddressBookName(const CBitcoinAddress& address);