Git Product home page Git Product logo

codechain-keystore-cli's Introduction

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-keystore-cli

Install using the yarn package manager

yarn global add codechain-keystore-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 'cc' for mainnet, use 'wc' for corgi) (default: cc)
    -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 "ccc..."

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

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

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

codechain-keystore-cli's People

Contributors

dependabot[bot] avatar kakao-jun-e avatar kseo avatar majecty avatar misilvia avatar remagpie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

codechain-keystore-cli's Issues

Add migrate command

The new version of KeyStore has changed serialization format.
We should support users could migrate the old formatted file to a new formatted file easily.

Show common parameters in each sub command's help message

Below is printed result from cckey create --help

  Usage: create [options]

  create a new key

  Options:

    -p, --passphrase <passphrase>  passphrase
    -h, --help                     output usage information

The help message does not describe common parameters, like --account-type, --keys-path, and --network-id`. A user may confuse how she/he set an account type or network id.
We should show common parameters in subcommand's help message.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.