
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@semaphore-protocol/contracts
Advanced tools
Semaphore contracts to manage groups and broadcast anonymous signals.
Semaphore contracts to manage groups and broadcast anonymous signals.
To learn more about contracts visit semaphore.pse.dev.
You can install the semaphore protocol contracts with any node package manager (bun
, npm
, pnpm
,yarn
) or the solidity package manager soldeer
.
bun add @semaphore-protocol/contracts
npm i @semaphore-protocol/contracts
pnpm add @semaphore-protocol/contracts
yarn add @semaphore-protocol/contracts
# for soldeer, an explicit version is required, e.g:
soldeer install semaphore-protocol-contracts~4.6.0
Compile the smart contracts with Hardhat:
yarn compile
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 the Semaphore.sol
contract without any parameter:
yarn deploy
or deploy it by providing the addresses of the contracts/libraries on which it depends:
yarn deploy --semaphoreVerifier <address>
Note
Runyarn deploy:semaphore --help
to see the complete list.
If you want to deploy your contract in a specific network you can set up the DEFAULT_NETWORK
variable in your .env
file with the name of one of our supported networks (hardhat, localhost, sepolia, arbitrum). Or you can specify it as an option:
yarn deploy --network sepolia
yarn deploy --network mumbai
yarn deploy --network optimism-sepolia
yarn deploy --network arbitrum-sepolia
yarn deploy --network arbitrum
If you want to deploy contracts on Sepolia or Arbitrum, remember to provide a valid private key and an Infura API in your .env
file.
FAQs
Semaphore contracts to manage groups and broadcast anonymous signals.
The npm package @semaphore-protocol/contracts receives a total of 159 weekly downloads. As such, @semaphore-protocol/contracts popularity was classified as not popular.
We found that @semaphore-protocol/contracts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.