[#wallet-DescriptorScriptPubKeyMan-GetSigningProvider]
= xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::GetSigningProvider
:relfileprefix: ../../
:mrdocs:

Fetch the SigningProvider for the given pubkey and always include private keys&period; This should only be called by signing code&period;

== Synopsis

Declared in `&lt;wallet&sol;scriptpubkeyman&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::unique&lowbar;ptr&lt;FlatSigningProvider&gt;
GetSigningProvider(xref:CPubKey.adoc[CPubKey] const& pubkey) const;
----

== Return Value

A signing provider for the pubkey, including private keys&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pubkey*
| The public key to fetch a signing provider for&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
