where is the wallet "master secret" key stored? Is it possible to print is out?
I wrote it down when I first installed the wallet, but I would like to validate its correctness
There is not currently a command in the wallet that will print it out. However, it can be retrieved as follows:
Assuming you are running under Windows (if not, these directions can also be adapted for Linux):
1. Go to
https://www.sqlite.org/download.html2. Download sqlite-tools-win32-x86-3290000.zip
3. Extract sqlite3.exe
4. Run the commands:
sqlite3 %LOCALAPPDATA%\CredaCash\CCWallet-1\CCWallet.ccw
.mode quote
select PackedParams, Secret from Secrets where Id=1;
The first field printed is the "encrypted master secret" reported when the wallet is created, and the second is the unencrypted master secret.
To confirm that you can recreate this wallet from the "encrypted master secret" and password, you can do the following:
1. Run the command:
ccwallet --create-wallet --datadir=. --initial-master-secret=
2. Enter the password used when the wallet was created.
3. Run the commands:
sqlite3 CCWallet.ccw
.mode quote
select PackedParams, Secret from Secrets where Id=1;
4. del CCWallet.ccw
The results shown should be the same as shown above if you used the same encrypted master secret and password as when the first wallet was created.