Files
self/contracts/ignition
Evi Nova bea9b7eff5 Feat/update contract scripts (#1212)
* chore: add a verifier script

* chore: remove expirty and add update registry script

* chore: change script to the new aadhaar contract

* chore: add new deployed addresses

* fix: tests

* feat: add scripts for registries and the hub

* feat: add aadhaar registry

* feat: add more scripts

* chore: rm logs

* fix: hardhat config

* update scripts

* fix: test

* accept proofs 1 day in the future

* fix: prettier formatting issues in contracts and circuits

---------

Co-authored-by: ayman <aymanshaik1015@gmail.com>
Co-authored-by: Ayman Mohammed <ayman@Aymans-MacBook-Pro.local>
2025-10-06 11:45:22 +02:00
..

how to deploy and update the protocol

Main contracts:

  • Hub
  • Registries
    • Passports
    • ID cards

Hub and Registries are following an upgradeable proxy pattern. Use only the Proxy address for everything.

Secondary contracts:

  • vc_and_disclose verifiers
  • vc_and_disclose_id verifiers
  • register verifiers'
  • register id verifiers
  • dsc verifiers

How to update the protocol:

Deploy the Hub V2 and the Identity registry

yarn deploy:hub:v2
yarn deploy:registry:idcard

Set the registries address in the hub

yarn set:hub:v2

Set the verifiers in the hub

yarn set:verifiers:v2

Update the registries

yarn set:registry:hub:v2
```