[#wallet-CMasterKey]
= xref:wallet.adoc[wallet]::CMasterKey
:relfileprefix: ../
:mrdocs:

Master key for wallet encryption

== Synopsis

Declared in `&lt;wallet&sol;crypter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class CMasterKey;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/CMasterKey/2constructor.adoc[`CMasterKey`]         [.small]#[constructor]#
| Constructs a master key with the default derivation method and iteration count&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/CMasterKey/nDerivationMethod.adoc[`nDerivationMethod`] 
| 0 &equals; EVP&lowbar;sha512()
| xref:wallet/CMasterKey/nDeriveIterations.adoc[`nDeriveIterations`] 
| Number of rounds used to derive the key from the passphrase&period;
| xref:wallet/CMasterKey/vchCryptedKey.adoc[`vchCryptedKey`] 
| The master key encrypted with AES&hyphen;256&hyphen;CBC using the passphrase&hyphen;derived key&period;
| xref:wallet/CMasterKey/vchOtherDerivationParameters.adoc[`vchOtherDerivationParameters`] 
| Use this for more parameters to key derivation (currently unused)
| xref:wallet/CMasterKey/vchSalt.adoc[`vchSalt`] 
| Random salt mixed into the passphrase during key derivation&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/CMasterKey/DEFAULT_DERIVE_ITERATIONS.adoc[`DEFAULT&lowbar;DERIVE&lowbar;ITERATIONS`] 
| Default&sol;minimum number of key derivation rounds
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
