Noble Programming Mantra

    @thrivecoin/thc-eth-tools

    0.1.2 • Public • Published

    thc-eth-tools-js

    thc-eth-tools-js is a simple cross platform cli tool for ethereum network.

    Currently supported features are:

    • export key content from keystore file

    Installing

    For usage as library run:

    npm install @thrivecoin/thc-eth-tools --save-prod

    For usage as cli tool run:

    npm install @thrivecoin/thc-eth-tools --global

    Usage

    CLI usage:

    thc-eth-tools <command>
    
    Commands:
      thc-eth-tools export-keystore  exports public and private key from v3 keystore
                                     file
    
    Options:
      --version  Show version number                                       [boolean]
      --help     Show help                                                 [boolean]
    
    
    thc-eth-tools export-keystore
    Options:
          --version  Show version number                                   [boolean]
          --help     Show help                                             [boolean]
      -f, --file     keystore file                               [string] [required]

    Code usage:

    const thcTools = require('thc-eth-tools')
    
    const content = fs.readFileSync('my_keystore', { encoding: 'utf-8' })
    const pwd = '123456'
    const key = await thcTools.exportKeys(content, pwd)
    console.log('address', key.address)
    console.log('privkey', key.privkey)
    console.log('pubkey', key.pubkey)

    Additional detailed examples can be found in examples folder.

    Testing

    npm run test

    Authors

    Install

    npm i @thrivecoin/thc-eth-tools

    DownloadsWeekly Downloads

    1

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    9.06 kB

    Total Files

    13

    Last publish

    Collaborators

    • rilindm
    • oli312
    • vigan-abd