You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@anon-aadhaar/contracts

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anon-aadhaar/contracts

Verifier smart contract for Anon Aadhaar protocol

npmnpm
Version
2.2.2
Version published
Weekly downloads
3
-76.92%
Maintainers
0
Weekly downloads
 
Created
Source

@anon-aadhaar/contracts

This package contains the anon Aadhaar Verfier contract. You can import it directly into your Hardhat project, or use the already deployed contracts, to verify an Anon Aadhaar Proof.

🛠 Install

npm

npm install @anon-aadhaar/contracts

yarn

yarn add @anon-aadhaar/contracts

Update your hardhat.config.ts in your project:

import 'hardhat-dependency-compiler'

const config: HardhatUserConfig = {
  solidity: '0.8.19',
  dependencyCompiler: {
    paths: ['@anon-aadhaar/contracts/src/AnonAadhaar.sol'],
  },
}

📜 Usage

Compile the contracts:

yarn build

Test the contracts:

yarn test

Test the contracts with the gas report:

yarn test:gas

Deploy the contracts with the test public key to Sepolia:

yarn deploy:sepolia-test

Deploy the contracts with the production public key to Sepolia:

yarn deploy:sepolia-prod

FAQs

Package last updated on 08 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts