From 62c209f50d9c33fde5062ebca317b9a4233aff62 Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Sun, 1 Dec 2024 00:30:05 +0100 Subject: [PATCH] wallet: doc: remove mentions of unavailable scrypt derivation method These comments are there since wallet encryption was first introduced (see commit 4e87d341f75f13bbd7d108c31c03886fbc4df56f, PR #352), but scrypt was actually never implemented as a derivation method. --- src/wallet/crypter.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wallet/crypter.h b/src/wallet/crypter.h index 944858fb3f8..0dd7da65545 100644 --- a/src/wallet/crypter.h +++ b/src/wallet/crypter.h @@ -23,7 +23,7 @@ const unsigned int WALLET_CRYPTO_IV_SIZE = 16; * derived using derivation method nDerivationMethod * (0 == EVP_sha512()) and derivation iterations nDeriveIterations. * vchOtherDerivationParameters is provided for alternative algorithms - * which may require more parameters (such as scrypt). + * which may require more parameters. * * Wallet Private Keys are then encrypted using AES-256-CBC * with the double-sha256 of the public key as the IV, and the @@ -37,11 +37,9 @@ public: std::vector vchCryptedKey; std::vector vchSalt; //! 0 = EVP_sha512() - //! 1 = scrypt() unsigned int nDerivationMethod; unsigned int nDeriveIterations; - //! Use this for more parameters to key derivation, - //! such as the various parameters to scrypt + //! Use this for more parameters to key derivation (currently unused) std::vector vchOtherDerivationParameters; SERIALIZE_METHODS(CMasterKey, obj)