@zk-groups/contracts

0.4.0 • Public • Published

ZK-Groups contracts

Zk-groups smart contracts to manage off-chain groups and verify their zero-knowledge proofs.

Github license NPM version Downloads


🛠 Install

npm or yarn

Install the @zk-groups/contracts package with npm:

npm i @zk-groups/contracts

or yarn:

yarn add @zk-groups/contracts

📜 Usage

Compile contracts

Compile the smart contracts with Hardhat:

yarn compile

Testing

Run Mocha to test the contracts:

yarn test

You can also generate a test coverage report:

yarn test:coverage

Or a test gas report:

yarn test:report-gas

Deploy contracts

Deploy a zk-groups contract:

yarn deploy:zkgroups
# or
yarn deploy:zkgroups-semaphore

If you want to deploy contracts on Goerli or Arbitrum, remember to provide a valid private key and an Infura API in your .env file.

Package Sidebar

Install

npm i @zk-groups/contracts

Weekly Downloads

3

Version

0.4.0

License

MIT

Unpacked Size

9.38 kB

Total Files

7

Last publish

Collaborators

  • saleel
  • cedoor