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

Checks whether the given master key decrypts all keys handled by this spkm&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) override;
----

== Return Value

true if the key decrypts all keys handled by this spkm&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]#
