8000 Check old Universal Verifier / Embedded Verifier compatibility by daveroga · Pull Request #300 · iden3/contracts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Check old Universal Verifier / Embedded Verifier compatibility #300

New issue 8000

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Oct 24, 2024

Conversation

daveroga
Copy link
Contributor
@daveroga daveroga commented Oct 21, 2024
  • Check old Universal Verifier backward compatibility with some scripts.

    Fill contract addresses and execute:

    npx hardhat run scripts/maintenance/checkUniversalVerifierSingleNetwork.ts --network <network>
    
  • Fix multi-chain check scripts no need to have PRIVATE_KEY configured

  • Fix multi-chain check oracle signing address wrong state contract in Polygon networks

  • Add upgrade script to update validators from verifier requests

    npx hardhat run scripts/upgrade/validators/verifier-validators-upgrade.ts --network <network>
    

@daveroga daveroga force-pushed the feature/check-old-universal-verifier branch from 41d99f2 to 4867c33 Compare October 21, 2024 13:19
@coveralls
Copy link
coveralls commented Oct 21, 2024

Pull Request Test Coverage Report for Build 11498609477

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 84.761%

Totals Coverage Status
Change from base Build 11444503632: 0.0%
Covered Lines: 953
Relevant Lines: 1052

💛 - Coveralls

@daveroga daveroga marked this pull request as ready for review October 21, 2024 22:46
@daveroga daveroga force-pushed the feature/check-old-universal-verifier branch from 7d22541 to 2269576 Compare October 22, 2024 07:28
@daveroga daveroga force-pushed the feature/check-old-universal-verifier branch from c922feb to 1d24939 Compare October 22, 2024 09:01
@daveroga daveroga requested a review from OBrezhniev October 22, 2024 09:01
@daveroga daveroga marked this pull request as draft October 22, 2024 09:25
@daveroga daveroga changed the title Check old Universal Verifier compatibility Check old Universal Verifier / Embedded Verifier compatibility Oct 22, 2024
@daveroga daveroga force-pushed the feature/check-old-universal-verifier branch from 6d2c275 to daf4638 Compare October 22, 2024 09:53
@daveroga daveroga marked this pull request as ready for review October 23, 2024 08:36
let validatorVerification;
let validatorContractName;
let validatorType;
switch (JSON.parse(request[0]).body.scope[0].circuitId) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work if the request JSON is missing or, even worse, wrongly set. Consider getting circuit name from getSupportedCircuitIds()[0] of ICircuitValidator

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check if setProofRequest is properly switched from .env file to this constants.ts

Copy link
Contributor Author
@daveroga daveroga Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's already switched and takes the unified address of the Universal Verifier from constants. Thanks
I have added now also Circuit ID name in constants.ts that I saw they were in several places.

export const CIRCUIT_ID_MTP_V2 = "credentialAtomicQueryMTPV2OnChain";
export const CIRCUIT_ID_SIG_V2 = "credentialAtomicQuerySigV2OnChain";
export const CIRCUIT_ID_V3 = "credentialAtomicQueryV3OnChain-beta.1";

@daveroga daveroga force-pushed the feature/check-old-universal-verifier branch from 9dbb857 to 441b59f Compare October 24, 2024 11:45
@AndriianChestnykh AndriianChestnykh merged commit e2b5fe5 into master Oct 24, 2024
5 checks passed
@AndriianChestnykh AndriianChestnykh deleted the feature/check-old-universal-verifier branch October 24, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0