-
Notifications
You must be signed in to change notification settings - Fork 133
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
expose hash to group #887
expose hash to group #887
Conversation
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.
Minor comment from @crypto_guardian.
src/lib/hash.ts
Outdated
// r is the second root of sqrt(y^2) | ||
let r = y.mul(-1); |
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.
Could we factor that computation, albeit not costly with the let y_ = y.mul(-1)
below?
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.
just realized I never finish my review 😓 can you address this @Trivo25
…labs/snarkyjs into feature/hashToCurve-bindings
exposes hashToGroup to SnarkJS
closes #772 companion of o1-labs/o1js-bindings#5