-
Notifications
You must be signed in to change notification settings - Fork 142
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
ZK circuits for OpenID Authenticator #583
Conversation
c003164
to
4eb1009
Compare
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.
The circuits look good, just a few comments on readability
|
||
// Checks on last char | ||
var lastchar = actual_extended_nonce[extNonceLength - 1]; | ||
(lastchar - 44) * (lastchar - 125) === 0; // lastchar = ',' or '}' |
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.
let's make this test a template and use it everywhere? AssertEndOfValue
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.
The circuits look good, just a few comments on readability
93f69ea
to
23404d1
Compare
4aaff0c
to
ed0f813
Compare
5184dac
to
bbd602e
Compare
2. Refactor circuit input generation code in circuitutils.ts 3. Introduce CircuitConstants as a place to store all the circuit-related constants and simplify function signatures
1. Introduce ExtendedClaimParser to parse claim name and value for an arbitrary extended claim (with some JSON whitespaces) 2. Turned off NonceChecker temporarily 3. ExtendedClaimParser for sub implemented
Adds an NPM library within fastcrypto containing the circom circuits