Author

Topic: Master Key Key (Read 218 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
September 16, 2019, 12:42:13 PM
#5
When the software client loads the wallet, all variables (majority) contained in wallet.dat file load into program memory and are updated as required, is this a fair assumption?
Yes.
newbie
Activity: 7
Merit: 1
September 16, 2019, 12:41:18 PM
#4
Thanks for the answers to my questions. I have one final question on this topic. When the software client loads the wallet, all variables (majority) contained in wallet.dat file load into program memory and are updated as required, is this a fair assumption?
staff
Activity: 3458
Merit: 6793
Just writing some code
September 16, 2019, 10:53:12 AM
#3
Within CMasterKey, vchCryptedKey is the encrypted master encryption key. This key is decrypted using a key derived from the user's passphrase (with key stretching parameters specified withing the CMasterKey. The decrypted encryption key is now a CKeyingMaterial and stored as vMasterKey in CWallet.

Encryption keys (along with some metadata) are stored in the wallet.dat file. They are encrypted by a key derived from the user's passphrase.
legendary
Activity: 2674
Merit: 2965
Terminated.
September 16, 2019, 10:33:21 AM
#2
How about you quote and/or include a link to the code that you are unsure about? Nobody should waste their time trying to find it. Wink
newbie
Activity: 7
Merit: 1
September 15, 2019, 10:49:30 PM
#1
Following path in source code for the creation of master key in crypter.cpp/.h. The program comment states Wallet Private Keys are encrypted with double sha 256 of public key as the IV and the master key's key as the encryption key. Is the encryption key the variable vchCryptedKey which is a part of the class CMasterKey or is it chKey from private class CCrypter? A second question since the IV is stored in the wallet.dat file, it is safe to assume this encryption key is stored in wallet.dat also? Please advise if I am incorrect? Thanks.
Jump to: