wallet::WalletBatch::WriteKey

Writes an unencrypted private key and its metadata.

Synopsis

Declared in <wallet/walletdb.h>

bool
WriteKey(
    CPubKey const& vchPubKey,
    CPrivKey const& vchPrivKey,
    CKeyMetadata const& keyMeta);

Return Value

true if the record was written.

Parameters

NameDescription
vchPubKeyThe public key.
vchPrivKeyThe corresponding private key.
keyMetaThe key metadata to store.