🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

noir-ziden

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noir-ziden

This is the proof-of-concept project of Ziden protocol with circuits written in Noir

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Noir-Ziden

This is the proof-of-concept project of Ziden protocol with circuits written in Noir

In this first version, we have completed the Noir circuits, test scripts as well as the TS scripts that serve the protocol's logic as specified in the Protocol-specs

Components

1. Merkle Tree & Indexed Merkle Tree

They are core data structure of the protocol, enabling succinct membership and non-membership verification, currently supporting:

  • Membership check
  • Non-membership check
  • Single insertion

See circuit

Upcoming features:

  • Variable arity
  • Batch insertion

2. Digital Signature

Digital signatures are used in the protocol as a principal authorization mechanism, in this version, we support 2 algorithms:

  • EdDSA
  • ECDSA

3. Protocol circuits

Run our code

Prerequisite

Installation

  • Install dependencies:
npm i
  • Compile Noir circuits:
./compile.sh

Test

  • Test claim features
npm run test-claim
  • Test indexed merkle tree features
npm run test-indexed-merkle-tree
  • Test state features
npm run test-state
  • Test claim presentation process
npm run test-claim-query

Future work

  • Solidity smart contracts for proof verification and identity state management

  • User interface for holders

  • Server for issuers

  • Server and smart contracts for verfiers

FAQs

Package last updated on 11 Sep 2023

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