wallet::WalletBatch::WriteMasterKey

Writes a master key used to encrypt wallet keys.

Synopsis

Declared in <wallet/walletdb.h>

bool
WriteMasterKey(
    unsigned int nID,
    CMasterKey const& kMasterKey);

Return Value

true if the record was written.

Parameters

NameDescription
nIDThe identifier of the master key.
kMasterKeyThe master key to store.