[#wallet-ScriptPubKeyMan-CheckDecryptionKey]
= xref:wallet.adoc[wallet]::xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan]::CheckDecryptionKey
:relfileprefix: ../../
:mrdocs:

Check that the given decryption key is valid for this ScriptPubKeyMan, i&period;e&period; it decrypts all of the keys handled by it&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
CheckDecryptionKey(xref:wallet/CKeyingMaterial.adoc[CKeyingMaterial] const& master&lowbar;key);
----

== Return Value

true if the key decrypts all keys handled by this ScriptPubKeyMan&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *master&lowbar;key*
| The candidate decryption key to verify&period;
|===


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