wallet::LoadCryptedKey

Loads an encrypted key from a database record into the wallet.

Synopsis

Declared in <wallet/walletdb.h>

bool
LoadCryptedKey(
    CWallet* pwallet,
    DataStream& ssKey,
    DataStream& ssValue,
    std::string& strErr);

Return Value

true if the key was loaded.

Parameters

NameDescription
pwalletThe wallet to load the key into.
ssKeyStream with the record key.
ssValueStream with the record value.
strErrReceives an error description on failure.