1
- codechain-keystore-cli [ ![ Build Status] ( https://travis-ci.org/CodeChain-io/codechain-keystore-cli.svg?branch=master )] ( https://travis-ci.org/CodeChain-io/codechain-keystore-cli )
2
- =========================
1
+ # codechain-keystore-cli [ ![ Build Status] ( https://travis-ci.org/CodeChain-io/codechain-keystore-cli.svg?branch=master )] ( https://travis-ci.org/CodeChain-io/codechain-keystore-cli )
3
2
4
3
A command line CodeChain key management tool
5
4
6
-
7
- How to install
8
- ----------------
5
+ ## How to install
9
6
10
7
### Binary install
11
8
@@ -23,25 +20,25 @@ npm install -g codechain-sdk-cli
23
20
yarn global add codechain-sdk-cli
24
21
```
25
22
26
- How to use
27
- ------
23
+ ## How to use
28
24
29
25
``` sh
30
- Usage: cckey [options] [action ]
26
+ Usage: cckey [options] [command ]
31
27
32
28
Options:
33
29
34
- -V, --version output the version number
35
- -t --account-type < account-type> ' platform' or ' asset' . The type of the key
36
- -p --passphrase < passphrase> passphrase
37
- -a --address < address> address
38
- -h, --help output usage information
30
+ -V, --version output the version number
31
+ -t, --account-type < accountType> ' platform' or ' asset' . The type of the key (default: platform)
32
+ -h, --help output usage information
39
33
40
- Action :
34
+ Commands :
41
35
42
- list : List all the saved addresses
43
- create : Create new key with passphrase
44
- delete : Delete the key of the given address
36
+ list list keys
37
+ create [options] create a new key
38
+ delete [options] delete the key
39
+ import [options] < path> import a key
40
+ import-raw [options] < privateKey> import a raw private key (32 byte hexadecimal string)
41
+ export [options] export the key
45
42
46
43
Examples:
47
44
@@ -51,4 +48,9 @@ How to use
51
48
52
49
cckey delete -t platform --address " tcc..."
53
50
51
+ cckey import UTC--2018-08-14T06-30-23Z--bbb6685e-7165-819d-0988-fc1a7d2d0523 -t platform --passphrase " satoshi"
52
+
53
+ cckey export -t platform --address tccqz76va4lh6dwkuwetmfrcgpn852emyq9hvjuksfg --passphrase " satoshi"
54
+
55
+ cckey import-raw -t platform a05f81608217738d99da8fd227897b87e8890d3c9159b559c7c8bbd408e5fb6e --passphrase " satoshi"
54
56
```
0 commit comments