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

Name

Description

storage

The wallet storage this spkm is bound to.

batch

The database batch to write the new spkm through.

keypool_size

The number of keys/scripts to keep pre‐generated.

master_key

The master key to derive the descriptor from.

addr_type

The output type of the addresses to generate.

internal

Whether the descriptor is for the internal (change) chain.

Created with MrDocs