[#wallet-WalletStorage-WithEncryptionKey] = xref:wallet.adoc[wallet]::xref:wallet/WalletStorage.adoc[WalletStorage]::WithEncryptionKey :relfileprefix: ../../ :mrdocs: Pass the encryption key to cb(). == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool WithEncryptionKey(std::function<bool(xref:wallet/CKeyingMaterial.adoc[CKeyingMaterial] const&)> cb) const = 0; ---- == Return Value The value returned by cb, or false if the key is unavailable. == Parameters [cols="1,4"] |=== | Name| Description | *cb* | Callback invoked with the wallet's master encryption key. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#