MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / WriteCryptedDescriptorKey

Method WriteCryptedDescriptorKey

src/wallet/walletdb.cpp:225–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225bool WalletBatch::WriteCryptedDescriptorKey(const uint256& desc_id, const CPubKey& pubkey, const std::vector<unsigned char>& secret)
226{
227 if (!WriteIC(std::make_pair(DBKeys::WALLETDESCRIPTORCKEY, std::make_pair(desc_id, pubkey)), secret, false)) {
228 return false;
229 }
230 EraseIC(std::make_pair(DBKeys::WALLETDESCRIPTORKEY, std::make_pair(desc_id, pubkey)));
231 return true;
232}
233
234bool WalletBatch::WriteDescriptor(const uint256& desc_id, const WalletDescriptor& descriptor)
235{

Callers 2

EncryptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected