[#wallet-DescriptorScriptPubKeyMan-2constructor-07] = xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::DescriptorScriptPubKeyMan :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<wallet/scriptpubkeyman.h>` Create an empty DescriptorScriptPubKeyMan with the given keypool size. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:wallet/DescriptorScriptPubKeyMan/2constructor-0d.adoc[DescriptorScriptPubKeyMan]( xref:wallet/WalletStorage.adoc[WalletStorage]& storage, int64_t keypool_size); ---- [.small]#xref:wallet/DescriptorScriptPubKeyMan/2constructor-0d.adoc[_» more..._]# Create a DescriptorScriptPubKeyMan from existing data (i.e. during loading) [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:wallet/DescriptorScriptPubKeyMan/2constructor-0f.adoc[DescriptorScriptPubKeyMan]( xref:wallet/WalletStorage.adoc[WalletStorage]& storage, xref:wallet/WalletDescriptor.adoc[WalletDescriptor]& descriptor, int64_t keypool_size, xref:wallet/KeyMap.adoc[KeyMap] const& keys, xref:wallet/CryptedKeyMap.adoc[CryptedKeyMap] const& ckeys); ---- [.small]#xref:wallet/DescriptorScriptPubKeyMan/2constructor-0f.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *storage* | The wallet storage this spkm is bound to. | *keypool_size* | The number of keys/scripts to keep pre‐generated. | *descriptor* | The wallet descriptor backing this spkm. | *keys* | The unencrypted private keys to load. | *ckeys* | The encrypted private keys to load. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#