ZKP Series: A Catalog of Technical Features in Popular ZKP Implementation Schemes

Overview

Field of Application of ZKP

  1. Privacy Certificate

ZKP System

  1. Interactive Proof System
  • Bulletproofs
  • SNARKs (Succinct Non-interactive ARguments of Knowledge)
  • SNORKs (Succinct Non-interactive Oecumenical/Universal Arguments of Knowledge)
  • STARKs (Succinct (Scalable) Transparent Arguments of Knowledge)
https://docs.google.com/presentation/d/1gfB6WZMvM9mmDKofFibIgsyYShdf0RV_Y8TLz3k1Ls0/edit
https://docs.google.com/presentation/d/1gfB6WZMvM9mmDKofFibIgsyYShdf0RV_Y8TLz3k1Ls0/edit

Circuit Programming

  • The ZKP proof code is transformed into a set of simple constraint expressions called R1CS, which is then converted into a large polynomial QAP using the Lagrange interpolation method. Finally, it is constrained in the form of gate circuits.
  • Similar to hardware circuits, all code branches execute simultaneously.
  • Similar to hardware circuits, ZKP enforces the absence of recursion and complex loops within the circuit, with the number of loops limited to a constant.
  1. Commonly Used Development Libraries
  • libsnark
  • gnark
  • bellman
  • snarkjs
  • ethsnarks
  • bulletproofs
  • halo2

Special Language for Circuit Programming

  1. Based on the Ethereum Platform
  • Cairo
  • Zokrates
  • Circom
  • Noir
  • ZkE VM
  • zkApp (Mina)
  • LEO (Aleo)

ZKP Common Security Issues

  • Trust Parameter Risk
  • Static Code Security
  • Supply Chain Attack Risk
  • Logical Error
  • Double Spend Attack
  • Proof Forgery
  • Side Channel Attack
  • Circuit Constraint Failure
  • Special Value Attack
  • Privacy Input Guessing
  • Rugpull Risk
  • Smart Contract Risk

Summary

About SlowMist

--

--

SlowMist is a Blockchain security firm established in 2018, providing services such as security audits, security consultants, red teaming, and more.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
SlowMist

SlowMist is a Blockchain security firm established in 2018, providing services such as security audits, security consultants, red teaming, and more.