[#wallet-CWallet-WithEncryptionKey]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::WithEncryptionKey
:relfileprefix: ../../
:mrdocs:

Invoke a callback with the decrypted master key while holding the encryption lock&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
WithEncryptionKey(std::function&lt;bool(xref:wallet/CKeyingMaterial.adoc[CKeyingMaterial] const&)&gt; cb) const override;
----

== Return Value

The value returned by the callback&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cb*
| The callback invoked with the master key material&period;
|===


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