[#wallet-WalletBatch-WriteCryptedDescriptorKey] = xref:wallet.adoc[wallet]::xref:wallet/WalletBatch.adoc[WalletBatch]::WriteCryptedDescriptorKey :relfileprefix: ../../ :mrdocs: Writes an encrypted descriptor private key. == Synopsis Declared in `<wallet/walletdb.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool WriteCryptedDescriptorKey( xref:uint256.adoc[uint256] const& desc_id, xref:CPubKey.adoc[CPubKey] const& pubkey, std::vector<unsigned char> const& secret); ---- == Return Value true if the record was written. == Parameters [cols="1,4"] |=== | Name| Description | *desc_id* | The identifier of the descriptor. | *pubkey* | The public key. | *secret* | The encrypted private key material. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#