Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 894 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 894 Bytes

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