ZenGo-X / cosmos-thresh-wallet

Cosmos full featured wallet working with 2 party ECDSA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cosmos Threshold Wallet

Cosmos wallet powered by two-party ECDSA.

WIP!! Use at your own risk

Installation

  1. Install Node.js
    (tested on Node 10)
  2. Install nightly Rust
    (tested on rustc 1.38.0-nightly (0b680cfce 2019-07-09))
  3. Install the package:
git clone https://github.com/KZen-networks/cosmos-thresh-wallet.git
cd cosmos-playground
yarn install
yarn build

Built files will be located in the dist folder.

Running the Code

You can run a demo using the command line.
Server:

$ demo/server

Client:

Usage: client [options] [command]

Options:
  -h, --help                                                                 output usage information

Commands:
  address [options]
  balance [options] <address>
  delegations [options] <address>
  rewards [options] <address>
  unbonding [options] <address>
  redelegations [options]
  apr [options]
  commission [options] <validator>
  validator_apr [options] <validator>
  tx [options] <txhash>
  transactions [options]
  transfer [options] <from> <to> <amount>
  delegate [options] <from> <to> <amount>
  undelegate [options] <delegator> <validator> <amount>
  redelegate [options] <delegator> <validator_src> <validator_dst> <amount>
  collect [options] <delegator>
  • Start by generating a new address.
  • Populate the address with coins from testnet faucet

Testing

Replace addresses with in test file with addresses generate with ./demo/client address and populated with testnet coins You can generate a new address using the same share, but specifying the index

Exmpale:

./demo/client address --index 1

Demo

demo

License

GPL-3.0

About

Cosmos full featured wallet working with 2 party ECDSA

License:GNU General Public License v3.0


Languages

Language:TypeScript 88.0%Language:JavaScript 12.0%