[#wallet-CMasterKey] = xref:wallet.adoc[wallet]::CMasterKey :relfileprefix: ../ :mrdocs: Master key for wallet encryption == Synopsis Declared in `<wallet/crypter.h>` [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. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:wallet/CMasterKey/nDerivationMethod.adoc[`nDerivationMethod`] | 0 = EVP_sha512() | xref:wallet/CMasterKey/nDeriveIterations.adoc[`nDeriveIterations`] | Number of rounds used to derive the key from the passphrase. | xref:wallet/CMasterKey/vchCryptedKey.adoc[`vchCryptedKey`] | The master key encrypted with AES‐256‐CBC using the passphrase‐derived key. | 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. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:wallet/CMasterKey/DEFAULT_DERIVE_ITERATIONS.adoc[`DEFAULT_DERIVE_ITERATIONS`] | Default/minimum number of key derivation rounds |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#