[#wallet-LegacyDataSPKM-LoadCryptedKey] = xref:wallet.adoc[wallet]::xref:wallet/LegacyDataSPKM.adoc[LegacyDataSPKM]::LoadCryptedKey :relfileprefix: ../../ :mrdocs: Adds an encrypted key to the store, without saving it to disk (used by LoadWallet) == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool LoadCryptedKey( xref:CPubKey.adoc[CPubKey] const& vchPubKey, std::vector<unsigned char> const& vchCryptedSecret, bool checksum_valid); ---- == Return Value true if the encrypted key was added. == Parameters [cols="1,4"] |=== | Name| Description | *vchPubKey* | The public key corresponding to the encrypted key. | *vchCryptedSecret* | The encrypted private key material. | *checksum_valid* | Whether the stored checksum for the key is valid. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#