wallet::LoadEncryptionKey

Loads a master encryption key from a database record into the wallet.

Synopsis

Declared in <wallet/walletdb.h>

bool
LoadEncryptionKey(
    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.