Add CWallet::AddCryptedSaplingSpendingKey() hook
To be filled in when we implement Sapling persistence to disk.
This commit is contained in:
@@ -264,6 +264,19 @@ bool CWallet::AddCryptedSpendingKey(const libzcash::SproutPaymentAddress &addres
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CWallet::AddCryptedSaplingSpendingKey(const libzcash::SaplingFullViewingKey &fvk,
|
||||||
|
const std::vector<unsigned char> &vchCryptedSecret)
|
||||||
|
{
|
||||||
|
if (!CCryptoKeyStore::AddCryptedSaplingSpendingKey(fvk, vchCryptedSecret))
|
||||||
|
return false;
|
||||||
|
if (!fFileBacked)
|
||||||
|
return true;
|
||||||
|
{
|
||||||
|
// TODO: Sapling - Write to disk
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool CWallet::LoadKeyMetadata(const CPubKey &pubkey, const CKeyMetadata &meta)
|
bool CWallet::LoadKeyMetadata(const CPubKey &pubkey, const CKeyMetadata &meta)
|
||||||
{
|
{
|
||||||
AssertLockHeld(cs_wallet); // mapKeyMetadata
|
AssertLockHeld(cs_wallet); // mapKeyMetadata
|
||||||
|
|||||||
@@ -999,7 +999,7 @@ public:
|
|||||||
bool RemoveViewingKey(const libzcash::SproutViewingKey &vk);
|
bool RemoveViewingKey(const libzcash::SproutViewingKey &vk);
|
||||||
//! Adds a viewing key to the store, without saving it to disk (used by LoadWallet)
|
//! Adds a viewing key to the store, without saving it to disk (used by LoadWallet)
|
||||||
bool LoadViewingKey(const libzcash::SproutViewingKey &dest);
|
bool LoadViewingKey(const libzcash::SproutViewingKey &dest);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sapling ZKeys
|
* Sapling ZKeys
|
||||||
*/
|
*/
|
||||||
@@ -1007,6 +1007,8 @@ public:
|
|||||||
libzcash::SaplingPaymentAddress GenerateNewSaplingZKey();
|
libzcash::SaplingPaymentAddress GenerateNewSaplingZKey();
|
||||||
//! Adds Sapling spending key to the store, and saves it to disk
|
//! Adds Sapling spending key to the store, and saves it to disk
|
||||||
bool AddSaplingZKey(const libzcash::SaplingSpendingKey &key);
|
bool AddSaplingZKey(const libzcash::SaplingSpendingKey &key);
|
||||||
|
bool AddCryptedSaplingSpendingKey(const libzcash::SaplingFullViewingKey &fvk,
|
||||||
|
const std::vector<unsigned char> &vchCryptedSecret);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Increment the next transaction order id
|
* Increment the next transaction order id
|
||||||
|
|||||||
Reference in New Issue
Block a user