Skip to content

HorizenLabs/zkverify-example-sindri

Repository files navigation

zkverify-example-sindri

Setup

  1. Install Dependencies
npm install
  1. Environment Variables
  • Set SINDRI_API_KEY environment variable (e.g. in .env file)
  • Set zkVerify wallet SEED_PHRASE environment variable (e.g. in .env file)
  1. Compile & Deploy the circuit on Sindri
npx tsx compile.ts
  1. Generate a proof on sindri to test everything is setup
npx tsx prove.ts

Generate with Sindri and verify with zkVerify

Backend example

Generate a proof using Sindri then verify the proof using zkVerify

npx tsx verify.ts

Frontend example with backend server calls

npm run dev

Additional Resources

Project creation and Sindri instructions (For new projects)

zkVerify

zkVerifyJS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published