项目作者: vuvth

项目描述 :
My implementation zk-rollup uses ethsnarks toolkits.
高级语言: C++
项目地址: git://github.com/vuvth/e21.git
创建时间: 2021-04-29T21:04:48Z
项目社区:https://github.com/vuvth/e21

开源协议:

下载


e21

Implement zk-rollup use libsnark and node js for my thesis.

Thank community for good idea about layer 2 and zk-rollup.

Build and start

Build

  1. git submodule update --init --recursive
  2. npm install
  3. ./script.sh config
  4. ./script.sh build

Run

  1. export tx_per_epoch=10
  2. export number_user=10 # should less than 20 because hardhat only have 20 default accounts.
  3. ./zkrle21 init $number_user $tx_per_epoch
  4. ./zkrle21 deposit $tx_per_epoch
  5. ./zkrle21 # query balance of account
  6. ./zkrle21 transfer $tx_per_epoch
  7. ./zkrle21 withdraw $tx_per_epoch

Benchmark token tranfer

  1. npx hardhat run ./scripts/token_benchmark.js

Architecture

Docs

inprocess…….

References