This is an example app showing how to integrate the Anon Aadhaar.
You can check the documentation here
You can fork/clone it.
To run it locally you'll need to add some env variables. You can copy the .env.local.example
to a .env.local
file.
NEXT_PUBLIC_ANON_AADHAAR__SEPOLIA_CONTRACT_ADDRESS=0a490C2C99a3002E5cf91caeB8049aE55f8F4EdD
NEXT_PUBLIC_VOTE_CONTRACT_ADDRESS=6b883BB5115586Ee621D35F287681AE2D83d285B
# WalletConnect API key
NEXT_PUBLIC_PROJECT_ID=
# Infura API key
NEXT_PUBLIC_SEPOLIA_PROVIDER_ID=
# Your wallet private key, used only in deployin contracts
PRIVATE_KEY=
yarn install
yarn dev
cd contracts
npx hardhat test