wallet::WalletBatch::WriteCryptedKey

Writes an encrypted private key and its metadata.

Synopsis

Declared in <wallet/walletdb.h>

bool
WriteCryptedKey(
    CPubKey const& vchPubKey,
    std::vector<unsigned char> const& vchCryptedSecret,
    CKeyMetadata const& keyMeta);

Return Value

true if the record was written.

Parameters

NameDescription
vchPubKeyThe public key.
vchCryptedSecretThe encrypted private key material.
keyMetaThe key metadata to store.