Skip to content

IoFinnet/io-chain-cldsvc-vc-verifier

 
 

Repository files navigation

IDEN3 Smart Contracts Test

  • State - State contract, where identity states are published
  • Smt - library to manage Sparse Merkle Trees onchain

Security Audits

  1. Nethermind has performed a security audit of our core smart contracts (State & Smt) and compiled a report on Apr 18, 2023: NM_0069_POLYGON_FINAL.pdf

  2. Nethermind has performed a second security audit of our core smart contracts (State, IdentityBase, GenesisUtils, OnChainIdentity) and compiled a report on Sep 13, 2023: NM0113-FINAL-POLYGONID.pdf

Deployment

Uncomment networks object and updated blockchain provider url and private key in hardhat.config.js for the relevant network. Then run the deployment script:

npx hardhat run --network <your-network> scripts/deploy.js

Run tests

npx hardhat test

Run tests with gas statistics report:

REPORT_GAS=true npx hardhat test 

Run tests with gas statistics and costs report:

COINMARKETCAP_KEY=<<your coinmarketcap key>> REPORT_GAS=true npx hardhat test 

Other Hardhat commands

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat node
npx hardhat help

Publish contracts to npm

cd contracts
npm publish

License

This repository is part of the iden3 project copyright 2023 0KIMS Association and published under GPL-3.0 license. Please check the LICENSE file for more details.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 51.8%
  • Solidity 43.1%
  • Go 4.1%
  • Other 1.0%