Socket
Book a DemoInstallSign in
Socket

@crisp-e3/contracts

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crisp-e3/contracts

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

latest
npmnpm
Version
0.2.3-test
Version published
Maintainers
2
Created
Source

Solidity Contracts

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

Contracts are built and tested with [forge], which is part of the [Foundry] toolkit. Tests are defined in the tests directory in the root of this template.

CRISP Program

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

It exposes two main functions:

  • validate - that is called when a new E3 instance is requested on Enclave (Enclave.request).
  • verify - that is called when the ciphertext output is published on Enclave (Enclave.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.

Input validator

The input validator contract is used to validate the input data that is submitted to the E3 instance. It is called by the Enclave contract when a new input is published (Enclave.publishInput). In CRISP, the data providers (the ones submitting the inputs) are the voters, and the input submitted is the vote itself.

The validator checks that gating conditions are satisfied and that the ciphertext is constructed correctly using Greco. See the Greco paper.

FAQs

Package last updated on 13 Nov 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