npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@privacy-protocol/cipher-contracts

v0.0.1

Published

Privacy Protocol Cipher Solidity contracts for Hardhat projects

Downloads

76

Readme

Cipher Contracts

Cipher Contracts is the smart contract package for Cipher — a series of toolkits for building confidential dApps on EVM blockchains.

The goal of Cipher is to help smart contract developers add privacy-preserving features to their dApps without having to build the entire cryptography stack from scratch.


Overview

Cipher Contracts provides reusable Solidity contracts and toolkit modules for confidential application logic.

The first toolkit available is the DAO Toolkit, which is designed for private governance use cases such as - hidden votes onchain, encrypted tallying, private eligibility checks, nullifier-based replay protection. All these features are enabled through combining mathematical cryptography primitives like ZK using Noir and FHE using Zama.

More toolkits will be added over time to Cipher.


Installation

Install Cipher Contracts in a Hardhat project with:

npm install @privacy-protocol/cipher-contracts @openzeppelin/contracts @fhevm/solidity

Usage

cipher-contracts is designed to be used as a deployed adapter contract that your DAO or governance contract talks to, but you can also use our own deployments.

Addresses:

  • PrivateDaoAdapter: 0x8274C53d82C5874455E67F80603F2792C9757cBE
  • HonkVerifier: 0x76A2d7a3F4927AaB90d2247eA541c305Ee8615F1

Import the contract (for customization) or interface (quicker) into your Solidity code:

import {PrivateDaoAdapter} from "@privacy-protocol/cipher-contracts/src/DaoToolkit/PrivateDaoAdapter.sol";
import {IPrivateDaoAdapter} from "@privacy-protocol/cipher-contracts/src/DaoToolkit/interface/IPrivateDaoAdapter.sol";

Check Docs for example DAO integration pattern.

Note: this package contains the Solidity contracts only. Your application is still responsible for generating the zk proof, encrypted vote payload, and final decryption inputs expected by the adapter.

What the DAO Toolkit provides

The DAO Toolkit is intended to support confidential governance flows such as:

  • proposal registration with private voting config
  • encrypted vote submission
  • encrypted tally storage
  • private membership verification
  • nullifier-based one-vote enforcement
  • final tally reveal

Contribute

Contributions are welcome.

If you want to contribute:

  1. Fork the repository
  2. Create a new branch for your feature or fix
  3. Make your changes
  4. Add or update tests where necessary
  5. Open a pull request

When contributing, please keep changes focused and clearly explain the reasoning behind architectural or security-related updates.

For major changes, it is best to open an issue first to discuss the proposal before implementation.


License

MIT