Zeropool Substrate contains the modules for Substrate (Polkadot) of Zeropool.
zeropool-substrate-devnet folder contains a working single node development network with zeropool-substrate pallet.
This is proof of concept of verifier of zkSNARKs on PolkaDot blockchain. groth16verify
is implemented and could be tested via test_groth16verify
external pallet method.
Test vectors could be obtained from fawkes-crypto or other zkSNARK frameworks.
Install Rust compiler: https://www.rust-lang.org Install Make utility: https://www.gnu.org/software/make/
To build and run the dev node, execute:
cd zeropool-substrate-devnet
make init
make run
cd zeropool-substrate-devnet/pallets/zeropool-substrate
cargo +nightly-2020-10-05 test --release
zeropool-substrate-nodejs-client contains a testing unit interacting with the Zeropool/Substrate node.
Install nodejs: https://nodejs.dev Install yarn: https://yarnpkg.com
To build and connect to the running dev node, execute:
cd zeropool-substrate-nodejs-client
yarn add @polkadot/api
node testapp.js
zeropool-substrate-client contains a basic web client to interact with the Zeropool/Substrate node.
Install yarn: https://yarnpkg.com
To build and connect to the running dev node, execute:
cd zeropool-substrate-client
yarn install
yarn start