[#wallet-CCrypter-Decrypt] = xref:wallet.adoc[wallet]::xref:wallet/CCrypter.adoc[CCrypter]::Decrypt :relfileprefix: ../../ :mrdocs: Decrypts ciphertext into key material with the configured key and IV. == Synopsis Declared in `<wallet/crypter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] bool Decrypt( std::span<unsigned char const> ciphertext, xref:wallet/CKeyingMaterial.adoc[CKeyingMaterial]& plaintext) const; ---- == Return Value true if decryption succeeded. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *ciphertext* | The ciphertext to decrypt. | *plaintext* | Receives the recovered key material. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#