Anon Aadhaar is a protocol that let users anonymously prove their Aadhaar identity, in a very fast and simple way. The core of the procotocol is the circuits, but we also provide a SDK to let any app use our protocol.
Explore our SDK in action by visiting our example website and repository, where you can see how it's implemented in a real-world scenario. Get inspired and learn how to integrate it into your own projects!
Contributions are always welcome!
Please check the PR template
Install rust
and nodejs v18
, openssl
(Usually installed in macOS and Linux) and qpdf
.
Install nodejs dependencies.
yarn
Install circom
and download powers of tau file.
yarn dev-install:pcd
Generate verification key and proving key.
NOTE:This action use for development only. Don't use it in product, please!
yarn dev-setup:pcd
Run test
yarn test:libraries
Generate pdf file with pkcs#1 schema. This action will create a pdf file name signed.pdf
signed by certificate.cer
in packages/anon-aadhaar-pcd/build
folder.
yarn pdf:pcd
You can generate several PDF files with the same certificate by running the following command:
yarn pdf:pcd other-file.pdf #other-file can be any name you want to give to the file
Generate a proof. This action will create a proof and its public scheme in proofs/
in packages/anon-aadhaar-pcd/build
folder.
yarn proof:pcd