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

@crisp-e3/contracts

v0.23.0

Published

This directory contains the Solidity contracts for CRISP - Coercion-Resistant Impartial Selection Protocol.

Readme

Solidity Contracts

This directory contains the Solidity contracts for CRISP - Coercion-Resistant Impartial Selection Protocol.

Contracts are built and tested with Hardhat. Tests are defined in the test directory.

Running Tests

To run contract tests from the CRISP example root (examples/CRISP/):

pnpm test:contracts

Alternatively, you can run tests directly from this directory:

pnpm test

Deployment

Local deploy is driven by ../../crisp.dev.env (see ../../docs/PROOF_AGGREGATION_AND_ZK.md):

  • pnpm dev:setup — applies profile, builds DKG circuits when CRISP_SKIP_PROOF_AGGREGATION=false
  • pnpm dev:up → scripts/crisp_deploy.sh — sets ENABLE_ZK_VERIFICATION from the same file

CRISP-only deploy (Interfold already deployed)

pnpm deploy:contracts          # production RISC0 verifier
pnpm deploy:contracts:full     # also deploy Interfold stack (no ZK unless ENABLE_ZK_VERIFICATION=true)

CRISP Program

This is the main logic of CRISP - an interfold program for secure voting.

It exposes three main functions:

  • validate - that is called when a new E3 instance is requested on Interfold (Interfold.request).
  • verify - that is called when the ciphertext output is published on Interfold (Interfold.publishCiphertextOutput). This function ensures that the ciphertext output is valid. CRISP uses Risc0 as the compute provider for running the FHE program, thus the proof will be a Risc0 proof.
  • publishInput - accepts the compact proof commitment for an input. A voter or relay calls it after the CRISP availability service has durably stored the ciphertext and signed the input ID with a 10-minute expiry. The function checks the stage, commitment cutoff, signed expiry, voter eligibility, service signature, and Noir proof over nine public inputs. It reserves the input's tree leaf and index immediately. finalizeInput later verifies the VectorX receipt for the exact ciphertext hash without requiring the voter to remain online. The proof establishes that the ciphertext was encrypted correctly under the committee public key (examples/CRISP/packages/crisp-contracts/contracts/CRISPProgram.sol:493-554, paths from the repository root). The verifier is the one the round's census selects: CRISPVerifier.sol for a census posted as a Merkle root, CRISPOnchainVerifier.sol for one read from token balances on chain. Both files declare a contract named HonkVerifier, which is why they are named by file. The Greco relations that proof checks are built by crates/zk-helpers/src/circuits/threshold/user_data_encryption/ and proved by the circuits under circuits/bin/threshold/. See the Greco paper.