Chromia
Start Building

03 / 19Advanced

Project setup

The steps below cover setting up the project and how it works. Once you complete them, you can run the application and interact with it yourself.

Prerequisites

Install the following tools first:

  • Node.js: version 18 or later.
  • MetaMask: install the browser extension and set it up.
  • Docker: needed to run a local Chromia Postchain node.
  • Rell: version 0.14.10. Install or upgrade Rell.
  • Circom and snarkjs: you write and compile zero-knowledge circuits with Circom; these circuits define the cryptographic constraints the proofs must satisfy. snarkjs takes the compiled circuits and generates and verifies zero-knowledge proofs from them. Install both tools globally.

Clone the demo project

Clone the ZKP demo source code:

bash
git clone https://bitbucket.org/chromawallet/zkp-demo.git
bash
cd zkp-demo
Written for this site from Chromia’s public course. Code samples are the course’s own.