From: Matt Corallo Date: Fri, 8 Jul 2011 13:47:35 +0000 (+0200) Subject: Add wallet privkey encryption. X-Git-Tag: v0.4.0-unstable~227^2~99^2~8 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=4e87d341f75f13bbd7d108c31c03886fbc4df56f Add wallet privkey encryption. This commit adds support for ckeys, or enCrypted private keys, to the wallet. All keys are stored in memory in their encrypted form and thus the passphrase is required from the user to spend coins, or to create new addresses. Keys are encrypted with AES-256-CBC using OpenSSL's EVP library. The key is calculated via EVP_BytesToKey using SHA512 with (by default) 25000 rounds and a random salt. By default, the user's wallet remains unencrypted until they call the RPC command encryptwallet or, from the GUI menu, Options-> Encrypt Wallet. When the user is attempting to call RPC functions which require the password to unlock the wallet, an error will be returned unless they call walletpassphrase