-
Notifications
You must be signed in to change notification settings - Fork 12
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
Implements Verifiable modes: VOPRF and POPRF #9
Conversation
Should this be rebased on #8 after that's merged? |
bb3474e
to
d9a7a7e
Compare
rebased now |
d9a7a7e
to
198bbd4
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.
LGTM!
}) | ||
if (testVector.mode === Oprf.Mode.POPRF) { | ||
const info = fromHex((vi as any).Info as string) // eslint-disable-line @typescript-eslint/no-explicit-any | ||
;(server as wrapPOPRFServer).info = info |
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.
First time seeing this syntax--neat!
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 colon is to separate conflicting statements.
the other part is just a cast.
Co-authored-by: Luke Valenta <lvalenta@cloudflare.com>
Co-authored-by: Luke Valenta <lvalenta@cloudflare.com>
Test vectors from draft-v09 are passing, except for batched vectors.