Socket
Book a DemoInstallSign in
Socket

incrementalquintree

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

incrementalquintree

An incremental Merkle tree which supports 2 or 5 nodes per leaf.

1.0.9
latest
Source
npmnpm
Version published
Weekly downloads
41
64%
Maintainers
1
Weekly downloads
 
Created
Source

An incremental Merkle tree written in Typescript and circom

This repository provides a Typescript implementation of an incremental Merkle tree which supports either 2 (binary) or 5 (quinary) leaves per node.

The original code is from the MACI project, but has been placed in its own repository and NPM package so other projects can use it.

circom circuits for zero-knowledge applications are also included. Please note that it is not possible to import .circom files from this module as the circom compiler does not yet have a way to specify custom import origins, like how solc has a --allow-paths flag.

Solidity contracts are also included.

To run all tests, first clone this repository, navigate to its root directory, and perform the following steps inside it:

  • Run npm i
  • In a separate terminal, run npm run circom-helper.
  • In a separate terminal, run npm run hardhat.
  • In a separate terminal, run npm run test.

FAQs

Package last updated on 08 Nov 2021

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.