Skip to content
/ e21 Public

My implementation zk-rollup uses ethsnarks toolkits.

Notifications You must be signed in to change notification settings

vuvoth/e21

Repository files navigation

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

git submodule update --init --recursive
npm install
./script.sh config 
./script.sh build

Run

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

Benchmark token tranfer

npx hardhat run ./scripts/token_benchmark.js 

Architecture

Docs

inprocess.......

References