Update to use new API in CCryptoKeyStore and store a viewing key in walletdb.

This commit is contained in:
Simon
2016-09-28 17:58:08 -07:00
parent 73699ceaf6
commit 2aa9c0253a
4 changed files with 16 additions and 7 deletions

View File

@@ -136,6 +136,7 @@ public:
/// Write spending key to wallet database, where key is payment address and value is spending key.
bool WriteZKey(const libzcash::PaymentAddress& addr, const libzcash::SpendingKey& key, const CKeyMetadata &keyMeta);
bool WriteCryptedZKey(const libzcash::PaymentAddress & addr,
const libzcash::ViewingKey & vk,
const std::vector<unsigned char>& vchCryptedSecret,
const CKeyMetadata &keyMeta);