Writes an unencrypted private key and its metadata.
Declared in <wallet/walletdb.h>
bool
WriteKey(
CPubKey const& vchPubKey,
CPrivKey const& vchPrivKey,
CKeyMetadata const& keyMeta);
true if the record was written.
| Name | Description |
|---|---|
| vchPubKey | The public key. |
| vchPrivKey | The corresponding private key. |
| keyMeta | The key metadata to store. |