wallet::WalletBatch::WriteDescriptorKey

Writes an unencrypted descriptor private key.

Synopsis

Declared in <wallet/walletdb.h>

bool
WriteDescriptorKey(
    uint256 const& desc_id,
    CPubKey const& pubkey,
    CPrivKey const& privkey);

Return Value

true if the record was written.

Parameters

NameDescription
desc_idThe identifier of the descriptor.
pubkeyThe public key.
privkeyThe corresponding private key.