W3Schools



从geth切换到Parity,想知道我现在的信息在哪里。谢谢。

paritykeystorebackup
8个回答
25

在Parity 1.6中:看一看

  • OSX:~/Library/Application\ Support/io.parity.ethereum/keys/
  • Linux:~/.local/share/io.parity.ethereum/keys/
  • 视窗:%APPDATA%\Parity\Ethereum\keys

在Parity 1.5中:看一看~/.parity/keys. You'll find what you're looking for.


4

根据Parity的文档ethstore key management API:

秘密商店目录:它可能是奇偶校验,奇偶校验,geth,   geth-test或路径。默认:奇偶校验

(另外值得注意的是ethkey key generator API and associated commands.)


4

当我从geth切换到奇偶校验时,我注意到奇偶校验导入了我的帐户.ethereum/keystore/* directory into parity somehow.

0 ✓ [email protected] ~ $ 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 ✓ [email protected] ~ $ 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}}

他们现在也位于.parity/keys/*:

0 ✓ [email protected] ~ $ 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 ✓ [email protected] ~ $ 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
}

6

奇偶校验存储密钥$HOME/.parity/keys In Windows, the $HOME parameter is equivalent to C:\Users\{CurrentUser}. Parity's local files live in $HOME/.parity making it C:\Users\{CurrentUser}\.parity.


10

当你跑步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.

在Linux上:~/.local/share/io.parity.ethereum/keys/

在Mac OS上:~/Library/Application\ Support/io.parity.ethereum/keys/


0

在Windows 7和10上,我不得不去这里:

C:\Users\{your_user_name}\AppData\Roaming\Parity\Ethereum\keys\ethereum

以...开头的文件UTC- are the keys.


1

在Windows上......

  • 私钥存储在

       %AppData%\Roaming\Parity\Ethereum\keys\ethereum
    
  • 区块链数据存储在

       %localappdata%\Parity\Ethereum\chains\ethereum\db\<nodeid>\overlayrecent\db
    

1

(只是添加了Bob Gill的答案;没有评论的声誉)。

在Windows上,私钥位于:

%appdata%\Parity\Ethereum

和区块链数据在:

%appdata%\..\Local\Parity\Ethereum\chains\ethereum\db\<nodeid>\overlayrecent\db

你真的不需要知道“<nodeid>"; it's the only folder there unless you have multiple nodes.

(%appdata%指向... \ AppData \ Roaming)