@@ -6,59 +6,37 @@ Conflux key management. It is built on top of the Parity Ethereum counterpart.
6
6
7
7
```
8
8
Conflux key management tool.
9
- Copyright 2020 Conflux Foundation
10
-
11
- Usage:
12
- cfxstore insert <secret> <password> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD]
13
- cfxstore change-pwd <address> <old-pwd> <new-pwd> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD]
14
- cfxstore list [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD]
15
- cfxstore import [--src DIR] [--dir DIR]
16
- cfxstore import-wallet <path> <password> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD]
17
- cfxstore find-wallet-pass <path> <password>
18
- cfxstore remove <address> <password> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD]
19
- cfxstore sign <address> <password> <message> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD]
20
- cfxstore public <address> <password> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD]
21
- cfxstore list-vaults [--dir DIR]
22
- cfxstore create-vault <vault> <password> [--dir DIR]
23
- cfxstore change-vault-pwd <vault> <old-pwd> <new-pwd> [--dir DIR]
24
- cfxstore move-to-vault <address> <vault> <password> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD]
25
- cfxstore move-from-vault <address> <vault> <password> [--dir DIR]
26
- cfxstore [-h | --help]
9
+ Copyright 2020 Conflux Foundation
27
10
28
- Options:
29
- -h, --help Display this message and exit.
30
- --dir DIR Specify the secret store directory. It may be either
31
- parity, parity-(chain), geth, geth-test
32
- or a path [default: parity].
33
- --vault VAULT Specify vault to use in this operation.
34
- --vault-pwd VAULTPWD Specify vault password to use in this operation. Please note
35
- that this option is required when vault option is set.
36
- Otherwise it is ignored.
37
- --src DIR Specify import source. It may be either
38
- parity, parity-(chain), geth, geth-test
39
- or a path [default: geth].
11
+ Usage: cfxstore <COMMAND>
40
12
41
13
Commands:
42
- insert Save account with password.
43
- change-pwd Change password.
44
- list List accounts.
45
- import Import accounts from src.
46
- import-wallet Import presale wallet.
47
- find-wallet-pass Tries to open a wallet with list of passwords given.
48
- remove Remove account.
49
- sign Sign message.
50
- public Displays public key for an address.
51
- list-vaults List vaults.
52
- create-vault Create new vault.
53
- change-vault-pwd Change vault password.
54
- move-to-vault Move account to vault from another vault/root directory.
55
- move-from-vault Move account to root directory from given vault.
14
+ insert Save account with password
15
+ change-pwd Change password
16
+ list List accounts
17
+ import Import accounts from src
18
+ import-wallet Import presale wallet
19
+ find-wallet-pass Tries to open a wallet with list of passwords given
20
+ remove Remove account
21
+ sign Sign message
22
+ public Displays public key for an address
23
+ list-vaults List vaults
24
+ create-vault Create new vault
25
+ change-vault-pwd Change vault password
26
+ move-to-vault Move account to vault from another vault/root directory
27
+ move-from-vault Move account to root directory from given vault
28
+ help Print this message or the help of the given subcommand(s)
29
+
30
+ Options:
31
+ -h, --help Print help
32
+ -V, --version Print version
56
33
```
57
34
58
35
### Examples
59
36
60
37
#### ` insert <secret> <password> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD] `
61
- * Encrypt secret with a password and save it in secret store.*
38
+
39
+ _ Encrypt secret with a password and save it in secret store._
62
40
63
41
- ` <secret> ` - conflux secret, 32 bytes long
64
42
- ` <password> ` - account password, file path
@@ -87,7 +65,8 @@ cfxstore insert `cfxkey generate random -s` "this is sparta"
87
65
--
88
66
89
67
#### ` change-pwd <address> <old-pwd> <new-pwd> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD] `
90
- * Change account password.*
68
+
69
+ _ Change account password._
91
70
92
71
- ` <address> ` - conflux address, 20 bytes long
93
72
- ` <old-pwd> ` - old account password, file path
107
86
--
108
87
109
88
#### ` list [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD] `
110
- * List secret store accounts.*
89
+
90
+ _ List secret store accounts._
111
91
112
92
- ` [--dir DIR] ` - secret store directory, It may be either parity, parity-test, geth, geth-test or a path. default: parity
113
93
- ` [--vault VAULT] ` - vault to use in this operation
@@ -126,7 +106,8 @@ cfxstore list
126
106
--
127
107
128
108
#### ` import [--src DIR] [--dir DIR] `
129
- * Import accounts from src.*
109
+
110
+ _ Import accounts from src._
130
111
131
112
- ` [--src DIR] ` - secret store directory, It may be either parity, parity-test, geth, geth-test or a path. default: geth
132
113
- ` [--dir DIR] ` - secret store directory, It may be either parity, parity-test, geth, geth-test or a path. default: parity
@@ -143,7 +124,8 @@ cfxstore import
143
124
--
144
125
145
126
#### ` import-wallet <path> <password> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD] `
146
- * Import account from presale wallet.*
127
+
128
+ _ Import account from presale wallet._
147
129
148
130
- ` <path> ` - presale wallet path
149
131
- ` <password> ` - account password, file path
@@ -159,10 +141,10 @@ cfxstore import-wallet ethwallet.json password.txt
159
141
e6a3d25a7cb7cd21cb720df5b5e8afd154af1bbb
160
142
```
161
143
162
-
163
144
--
164
145
165
146
#### ` find-wallet-pass <path> <password> `
147
+
166
148
Try to open presale wallet given a list of passwords from a file.
167
149
The list of passwords can be generated using e.g. [ Phildo/brutedist] ( https://github.com/Phildo/brutedist ) .
168
150
@@ -177,11 +159,11 @@ cfxstore find-wallet-pass ethwallet.json passwords.txt
177
159
Found password: test
178
160
```
179
161
180
-
181
162
--
182
163
183
164
#### ` remove <address> <password> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD] `
184
- * Remove account from secret store.*
165
+
166
+ _ Remove account from secret store._
185
167
186
168
- ` <address> ` - conflux address, 20 bytes long
187
169
- ` <password> ` - account password, file path
200
182
--
201
183
202
184
#### ` sign <address> <password> <message> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD] `
203
- * Sign message with account's secret.*
185
+
186
+ _ Sign message with account's secret._
204
187
205
188
- ` <address> ` - conflux address, 20 bytes long
206
189
- ` <password> ` - account password, file path
@@ -220,7 +203,8 @@ c6649f9555232d90ff716d7e552a744c5af771574425a74860e12f763479eb1b708c1f3a7dc0a0a7
220
203
--
221
204
222
205
#### ` public <address> <password> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD] `
223
- * Displays public key for an address.*
206
+
207
+ _ Displays public key for an address._
224
208
225
209
- ` <address> ` - conflux address, 20 bytes long
226
210
- ` <password> ` - account password, file path
@@ -239,7 +223,8 @@ cfxstore public 00e63fdb87ceb815ec96ae185b8f7381a0b4a5ea account_password.txt --
239
223
--
240
224
241
225
#### ` list-vaults [--dir DIR] `
242
- * List vaults.*
226
+
227
+ _ List vaults._
243
228
244
229
- ` [--dir DIR] ` - secret store directory, It may be either parity, parity-test, geth, geth-test or a path. default: parity
245
230
@@ -256,7 +241,8 @@ vault3
256
241
--
257
242
258
243
#### ` create-vault <vault> <password> [--dir DIR] `
259
- * Create new vault.*
244
+
245
+ _ Create new vault._
260
246
261
247
- ` <vault> ` - name of new vault. This can only contain letters, digits, whitespaces, dashes and underscores
262
248
- ` <password> ` - vault password, file path
273
259
--
274
260
275
261
#### ` change-vault-pwd <vault> <old-pwd> <new-pwd> [--dir DIR] `
276
- * Change vault password.*
262
+
263
+ _ Change vault password._
277
264
278
265
- ` <vault> ` - name of existing vault
279
266
- ` <old-pwd> ` - old vault password, file path
291
278
--
292
279
293
280
#### ` move-to-vault <address> <vault> <password> [--dir DIR] [--vault VAULT] [--vault-pwd VAULTPWD] `
294
- * Move account to vault from another vault/root directory.*
281
+
282
+ _ Move account to vault from another vault/root directory._
295
283
296
284
- ` <address> ` - conflux address, 20 bytes long
297
285
- ` <vault> ` - name of existing vault to move account to
300
288
- ` [--vault VAULT] ` - current vault of the ` <address> ` argument, if set
301
289
- ` [--vault-pwd VAULTPWD] ` - password for the current vault of the ` <address> ` argument, if any. file path
302
290
303
-
304
291
```
305
292
cfxstore move-to-vault 00e63fdb87ceb815ec96ae185b8f7381a0b4a5ea vault3 vault3_password.txt
306
293
cfxstore move-to-vault 00e63fdb87ceb815ec96ae185b8f7381a0b4a5ea vault1 vault1_password.txt --vault vault3 --vault-pwd vault3_password.txt
314
301
--
315
302
316
303
#### ` move-from-vault <address> <vault> <password> [--dir DIR] `
317
- * Move account to root directory from given vault.*
304
+
305
+ _ Move account to root directory from given vault._
318
306
319
307
- ` <address> ` - conflux address, 20 bytes long
320
308
- ` <vault> ` - name of existing vault to move account to
321
309
- ` <password> ` - password of existing ` <vault> ` to move account to, file path
322
310
- ` [--dir DIR] ` - secret store directory, It may be either parity, parity-test, geth, geth-test or a path. default: parity
323
311
324
-
325
312
```
326
313
cfxstore move-from-vault 00e63fdb87ceb815ec96ae185b8f7381a0b4a5ea vault1 vault1_password.txt
327
314
```
0 commit comments