Semaphore Extension Contracts
Solidity contracts to enhance Semaphore with extra features and customization.
🛠 Install
npm or yarn
Install the @semaphore-extension/contracts
package with npm:
npm i @semaphore-extension/contracts
or yarn:
yarn add @semaphore-extension/contracts
Usage
Compile contracts
yarn compile
Test contracts
yarn test
You can also generate a test coverage report:
yarn test:coverage
Or a test gas report:
yarn test:report-gas
- Copy the
.env.example
file as .env
.
cp .env.example .env
- Add your environment variables.
Note
You should at least set a valid Ethereum URL (e.g. Infura) and a private key with some ethers.
Deploy contracts
To deploy the SemaphoreVoting.sol
:
yarn deploy:semaphore-voting
To deploy the SemaphoreWhistleblowing.sol
:
yarn deploy:semaphore-whistleblowing