Switched from geth to Parity and wondering where my information now is. Thanks.
-
1That's really interesting because I saw your question before, but no one talked about Windows :) – infinitecolor Oct 07 '16 at 05:16
-
I know! I was hoping it would get a good answer that covered all bases. – tayvano Oct 07 '16 at 06:54
-
1This is not properly answered : For windows: $home\AppData\Roaming\Parity\Ethereum\keys\ethereum* and for Linux : $home/.local/share/io.parity.ethereum/keys/ethereum/* – Non-mask-able Interrupt Jun 17 '17 at 16:23
8 Answers
In Parity 1.6 : Have a look at
- OSX :
~/Library/Application\ Support/io.parity.ethereum/keys/ - Linux :
~/.local/share/io.parity.ethereum/keys/ - Windows:
%APPDATA%\Parity\Ethereum\keys
In Parity 1.5 : Have a look at ~/.parity/keys. You'll find what you're looking for.
- 945
- 2
- 8
- 21
- 1,242
- 11
- 13
-
2I installed parity with
bash <(curl https://get.parity.io -Lk)command on Ubuntu, however I don't have a~/.parityfolder. Yet it's syncing. Did the default directory change? – jeff Mar 07 '17 at 14:32 -
1I'm finding my parity data under
~/.local/share/io.parity.ethereum/– Edmund Edgar Mar 14 '17 at 00:09
When you run parity -h you can see the default keystore. It is listed as the default where the -d --base-path option is explained, under Operating Options.
On Linux: ~/.local/share/io.parity.ethereum/keys/
On Mac OS: ~/Library/Application\ Support/io.parity.ethereum/keys/
- 1,357
- 13
- 21
Parity stores keys in ~/.local/share/io.parity.ethereum/ for linux. Whereas for Windows, it stored them under C:\Users\{CurrentUser}\.parity\keys. `
- 18,780
- 4
- 58
- 75
-
This is not correct. On Windows there is no
$HOMEenvironment variable (and environment variables are%wrapped, not$prefixed). The correct path is%APPDATA%\Parity\Ethereum\..., which by default (but not always_ will take you to something likeC:\Users\<username>\AppData\Roaming\Parity\Ethereum\....– Micah Zoltu Mar 04 '18 at 03:52 -
Also, Parity no longer (incorrectly) stores files in
%USERPROFILE%\.parity(this was done previously but is really bad form on Windows). – Micah Zoltu Mar 04 '18 at 03:53
According to the documentation for Parity's ethstore key management API:
secret store directory: It may be either parity, parity-test, geth, geth-test or a path. default: parity
(Also of note is the ethkey key generator API and associated commands.)
- 37,835
- 13
- 87
- 144
When I switched from geth to parity, I noticed that parity imported my accounts from the .ethereum/keystore/* directory into parity somehow.
0 ✓ user@host ~ $ ll ~/.ethereum/keystore/
total 48K
4.0K drwxr-xr-x 2 user users 4.0K May 13 10:36 .
4.0K drwx------ 9 user users 4.0K Jun 17 10:17 ..
4.0K -rw-r--r-- 1 user users 58 May 13 10:36 contract-0x1482xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.txt
4.0K -rw-r--r-- 1 user users 43 Oct 16 2015 contract-0x534cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.txt
4.0K -rw-r--r-- 1 user users 43 Oct 16 2015 contract-0xe358xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.txt
4.0K -rw------- 1 user users 491 Oct 16 2015 UTC--2015-10-15T18-13-54.479132678Z--fcaexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
4.0K -rw------- 1 user users 491 Oct 16 2015 UTC--2015-10-15T20-25-00.928153131Z--a1c2xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
4.0K -rw------- 1 user users 491 Jan 15 13:37 UTC--2016-01-15T12-37-23.415253096Z--1337xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
4.0K -rw------- 1 user users 491 Feb 2 01:18 UTC--2016-02-02T00-18-36.894929209Z--a989xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
4.0K -rw------- 1 user users 491 Feb 2 01:36 UTC--2016-02-02T00-36-01.611176405Z--0000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
4.0K -rw------- 1 user users 491 Feb 4 14:51 UTC--2016-02-04T13-51-18.257136025Z--b195xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
4.0K -rw------- 1 user users 491 Feb 8 12:22 UTC--2016-02-08T11-22-19.471238279Z--006exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0 ✓ user@host ~ $ cat .ethereum/keystore/UTC--2016-02-08T11-22-19.471238279Z--006exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
{"address":"006exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","crypto":{"cipher":"aes-xxx-xxx","ciphertext":"874axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","cipherparams":{"iv":"fb05xxxxxxxxxxxxxxxxxxxxxxxxxxxx"},"kdf":"scrypt","kdfparams":{"dklen":xx,"n":xxxxxx,"p":x,"r":x,"salt":"6c6bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"},"mac":"a128xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"},"id":"f433aa7d-xxxx-xxxx-xxxx-xxxxxxxxxxxx","version":3}}
They are now also located in .parity/keys/*:
0 ✓ user@host ~ $ ll ~/.parity/keys/
total 36K
4.0K drwxr-xr-x 2 user users 4.0K Apr 20 19:31 .
4.0K drwxr-xr-x 5 user users 4.0K Apr 26 09:58 ..
4.0K -rw-r--r-- 1 user users 605 Jun 24 10:52 1843f804-xxxx-xxxx-xxxx-xxxxxxxxxxxx
4.0K -rw-r--r-- 1 user users 605 Jun 24 10:52 37dce086-xxxx-xxxx-xxxx-xxxxxxxxxxxx
4.0K -rw-r--r-- 1 user users 605 Jun 24 10:52 52a91bfd-xxxx-xxxx-xxxx-xxxxxxxxxxxx
4.0K -rw-r--r-- 1 user users 605 Jun 24 10:52 8240bdb9-xxxx-xxxx-xxxx-xxxxxxxxxxxx
4.0K -rw-r--r-- 1 user users 605 Jun 24 10:52 af3e6350-xxxx-xxxx-xxxx-xxxxxxxxxxxx
4.0K -rw-r--r-- 1 user users 605 Jun 24 10:52 f433aa7d-xxxx-xxxx-xxxx-xxxxxxxxxxxx
4.0K -rw-r--r-- 1 user users 605 Jun 24 10:52 f4bf9894-xxxx-xxxx-xxxx-xxxxxxxxxxxx
0 ✓ user@host ~ $ cat parity/keys/f433aa7d-xxxx-xxxx-xxxx-xxxxxxxxxxxx
{
"address": "006exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"crypto": {
"cipher": "aes-xxx-xxx",
"cipherparams": {
"iv": "fb05xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"ciphertext": "874axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"kdf": "scrypt",
"kdfparams": {
"dklen": xx,
"n": xxxxxx,
"p": x,
"r": x,
"salt": "6c6bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"mac": "a128xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"id": "f433aa7d-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": 3
}
- 32,913
- 47
- 156
- 395
On Windows...
Private keys are stored in
%AppData%\Roaming\Parity\Ethereum\keys\ethereumBlockchain data is stored in
%localappdata%\Parity\Ethereum\chains\ethereum\db\<nodeid>\overlayrecent\db
- 135
- 1
- 4
- 11
- 1
-
The first path is incorrect.
%APPDATA%takes you to theRoamingfolder if you have Windows setup with default paths. The correct path is%APPDATA%\Parity\Ethereum\...– Micah Zoltu Mar 04 '18 at 03:50
(Just adding to Bob Gill's answer; don't have the reputation to comment).
On Windows, the private keys are in:
%appdata%\Parity\Ethereum
and Blockchain data is in:
%appdata%\..\Local\Parity\Ethereum\chains\ethereum\db\<nodeid>\overlayrecent\db
You don't really need to know the "<nodeid>"; it's the only folder there unless you have multiple nodes.
(%appdata% points to ...\AppData\Roaming)
- 11
- 1
-
The blockchain data path is wrong. It should be
%LOCALAPPDATA%\Parity\Ethereum\....%APPDATA%\..\Localis not guaranteed to point to the same location as%LOCALAPPDATA%, which his where the chain data is really stored. – Micah Zoltu Mar 04 '18 at 03:49
On Windows 7 and 10, I had to go here:
C:\Users\{your_user_name}\AppData\Roaming\Parity\Ethereum\keys\ethereum
The files that start with UTC- are the keys.
- 397
- 1
- 5
- 18
-
This answer is incorrect as the path up to
AppData\Roamingmay differ depending on your OS settings. The correct path is%APPDATA%\Parity\Ethereum\...– Micah Zoltu Mar 04 '18 at 03:51