-
Notifications
You must be signed in to change notification settings - Fork 34
Check old Universal Verifier / Embedded Verifier compatibility #300
New issue
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
Check old Universal Verifier / Embedded Verifier compatibility #300
Conversation
41d99f2
to
4867c33
Compare
Pull Request Test Coverage Report for Build 11498609477Details
💛 - Coveralls |
7d22541
to
2269576
Compare
c922feb
to
1d24939
Compare
6d2c275
to
daf4638
Compare
let validatorVerification; | ||
let validatorContractName; | ||
let validatorType; | ||
switch (JSON.parse(request[0]).body.scope[0].circuitId) { |
There was a problem hiding this comment.
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
helpers/constants.ts
Outdated
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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";
9dbb857
to
441b59f
Compare
Check old Universal Verifier backward compatibility with some scripts.
Fill contract addresses and execute:
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