icetrust0212 / verida-dapp-connector-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Verida Dapp connector

This application directs a user to generate a zero knowledge proof (using zkPass or Reclaim protocol) of something on an external website. This proof is then sent to the user’s Verida Wallet using the Verida inbox messaging system.

Usecase Examples

  • Verify if you exceed trading volume on Binance
  • Verify if you are discord owner
  • Verify if you have Uber account

Setup

Setup zkPass account

  • Follow this instructions
  • Create new application and register necessary schemas .
  • Get APP_ID
  • In src/config/providers.ts update schemas with your own schemas.
  • Update NEXT_PUBLIC_ZKPASS_APP_ID in .env file.

Setup Reclaim account

  • Go to https://dev.reclaimprotocol.org/dashboard
  • Create new app and register necessary providers
  • In src/config/providers.ts update provider data with your own providers.
  • Update NEXT_PUBLIC_RECLAIM_APP_ID in .env file
  • Update RECLAIM_SECRET_KEY in .env file

Add PRIVATE_KEY to send message through Verida messaging system

  • Update PRIVATE_KEY in .env file.

Add VERIDA_SEED to send message through Verida messaging system. You get this from Verida Wallet.

  • Update VERIDA_SEED in .env file

Run

yarn install
yarn build
yarn start

About


Languages

Language:TypeScript 90.7%Language:CSS 7.5%Language:JavaScript 1.8%