2020-06-13 22:31:39 +09:00
2020-06-07 20:25:19 +09:00
2020-06-13 22:31:39 +09:00
2020-05-07 15:49:39 +09:00
2020-04-08 02:42:47 +09:00
2020-04-08 02:42:47 +09:00
2020-05-23 03:39:26 +09:00
2020-05-21 03:07:45 +09:00
2020-06-12 02:05:31 +09:00
2020-06-12 02:05:31 +09:00

zkopru

[WIP]

What is zkopru?

[WIP]

How to run wallet of zkopru?

npm install -g @zkopru/wallet
zkopru-wallet

How to run coordinator of zkopru?

npm install -g @zkopru/coordinator
zkopru-wallet --ws
zkopru-coordinator

Development

Prerequisites

  1. You need docker & docker-compose for integration test

  2. Set your node version v12. It currently supports Node v12.

    • Get nvm here
    • Download node version 12 and set to use it.
      nvm install 12
      nvm use 12
      
      If you want to make node 12 as the default option run && yarn build:keys
      nvm alias default 12
      
  3. Install yarn globally. You can skip this step if you already have yarn.

    npm install -g yarn
    

Build

  1. Install packages

    yarn
    
  2. Build packages

    yarn build
    

Run

  1. Prepare three terminals

  2. Run ganache and deploy contract by one-click.

    docker-compose up --build testnet
    
  3. Go to cooridnator package and run coordinator with a pre-configured test account.

    cd packages/coordinator && yarn dev:config
    

    This will give you a cli menu to operate coordinator locally.

  4. Go to the wallet package and run wallet with a pre-configured test account.

    cd packages/wallet && yarn dev:config
    

    This will give you a cli menu to run wallet locally.

Optional commands

Fresh build

yarn build:fresh

This command will re-build the whole packages by wiping away every artifacts.

Setting up new snark keys

yarn build:keys

Testing

yarn test

Module dev

lerna run build --scope=@zkopru/modulename
lerna run test --scope=@zkopru/modulename
Description
No description provided
Readme GPL-3.0 41 MiB
Languages
TypeScript 79.2%
Solidity 15.7%
JavaScript 2.4%
Circom 1.8%
Dockerfile 0.6%
Other 0.3%