A command line CodeChain key management tool
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
build-binaries
package.json
tsconfig.json
tslint.json
yarn.lock

README.md

codechain-keystore-cli Build Status

A command line for CodeChain's key management tool

How to install

Binary install

You can download the latest binaries from here

Install using the npm package manager

npm install -g codechain-sdk-cli

Install using the yarn package manager

yarn global add codechain-sdk-cli

How to use

  Usage: cckey [options] [command]

  Options:

    -V, --version                      output the version number
    -t, --account-type <accountType>   'platform' or 'asset'. The type of the key (default: platform)
    --keys-path <keysPath>             the path to store the keys (default: keystore.db)
    --network-id <networkId>           the id of the network (use 'tc' for husky, use 'sc' for saluki) (default: tc)
    -h, --help                         output usage information

  Commands:

    list                               list keys
    create [options]                   create a new key
    delete [options]                   delete a key
    import [options] <path>            import a key
    import-raw [options] <privateKey>  import a raw private key (32 byte hexadecimal string)
    export [options]                   export the key

  Examples:

    cckey create -t platform --passphrase "my password"

    cckey list -t asset

    cckey delete -t platform --address "tcc..."

    cckey import UTC--2018-08-14T06-30-23Z--bbb6685e-7165-819d-0988-fc1a7d2d0523 -t platform --passphrase "satoshi"

    cckey export -t platform --address tccqz76va4lh6dwkuwetmfrcgpn852emyq9hvjuksfg --passphrase "satoshi"

    cckey import-raw -t platform a05f81608217738d99da8fd227897b87e8890d3c9159b559c7c8bbd408e5fb6e --passphrase "satoshi"