Add crypted keystore sapling add key

This commit is contained in:
Jay Graber
2018-07-03 14:51:27 -07:00
parent 8e91ebf76c
commit 2173767365
7 changed files with 87 additions and 2 deletions

View File

@@ -129,7 +129,9 @@ class CCryptoKeyStore : public CBasicKeyStore
private:
CryptedKeyMap mapCryptedKeys;
CryptedSpendingKeyMap mapCryptedSpendingKeys;
CryptedSaplingSpendingKeyMap mapCryptedSaplingSpendingKeys;
CKeyingMaterial vMasterKey;
//! if fUseCrypto is true, mapKeys and mapSpendingKeys must be empty
@@ -230,6 +232,10 @@ public:
mi++;
}
}
//! Sapling
virtual bool AddCryptedSaplingSpendingKey(const libzcash::SaplingFullViewingKey &fvk,
const std::vector<unsigned char> &vchCryptedSecret);
bool AddSaplingSpendingKey(const libzcash::SaplingSpendingKey &sk);
/**
* Wallet status (encrypted, locked) changed.