wallet::DescriptorScriptPubKeyMan::GenerateNewSingleSig

Generates a new single-signature DescriptorScriptPubKeyMan from a master key.

Synopsis

Declared in <wallet/scriptpubkeyman.h>

static
std::unique_ptr<DescriptorScriptPubKeyMan>
GenerateNewSingleSig(
    WalletStorage& storage,
    WalletBatch& batch,
    int64_t keypool_size,
    CExtKey const& master_key,
    OutputType addr_type,
    bool internal);

Return Value

The new DescriptorScriptPubKeyMan.

Parameters

NameDescription
storageThe wallet storage this spkm is bound to.
batchThe database batch to write the new spkm through.
keypool_sizeThe number of keys/scripts to keep pre-generated.
master_keyThe master key to derive the descriptor from.
addr_typeThe output type of the addresses to generate.
internalWhether the descriptor is for the internal (change) chain.