Socket
Book a DemoInstallSign in
Socket

@semaphore-extensions/contracts

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semaphore-extensions/contracts

Solidity contracts to enhance Semaphore with extra features and customization.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
4
Created
Source

Semaphore Extension Contracts

Solidity contracts to enhance Semaphore with extra features and customization.

NPM license NPM version Downloads

👥 Contributing   |   🤝 Code of conduct   |   🔎 Issues   |   🗣️ Chat & Support

🛠 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

FAQs

Package last updated on 08 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts