Writes an encrypted private key and its metadata.
Declared in <wallet/walletdb.h>
bool
WriteCryptedKey(
CPubKey const& vchPubKey,
std::vector<unsigned char> const& vchCryptedSecret,
CKeyMetadata const& keyMeta);
true if the record was written.
| Name | Description |
|---|---|
| vchPubKey | The public key. |
| vchCryptedSecret | The encrypted private key material. |
| keyMeta | The key metadata to store. |