MCPcopy Create free account
hub / github.com/ElementsProject/elements / WriteCryptedDescriptorKey

Method WriteCryptedDescriptorKey

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

Source from the content-addressed store, hash-verified

230}
231
232bool WalletBatch::WriteCryptedDescriptorKey(const uint256& desc_id, const CPubKey& pubkey, const std::vector<unsigned char>& secret)
233{
234 if (!WriteIC(std::make_pair(DBKeys::WALLETDESCRIPTORCKEY, std::make_pair(desc_id, pubkey)), secret, false)) {
235 return false;
236 }
237 EraseIC(std::make_pair(DBKeys::WALLETDESCRIPTORKEY, std::make_pair(desc_id, pubkey)));
238 return true;
239}
240
241bool WalletBatch::WriteDescriptor(const uint256& desc_id, const WalletDescriptor& descriptor)
242{

Callers 2

EncryptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected