forked from zkcrypto/jubjub
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Implement hash_to_scalar
and hash_to_point
#129
Comments
The algorithm for
there will always be two solutions (
|
moCello
added a commit
that referenced
this issue
Dec 8, 2023
moCello
added a commit
that referenced
this issue
Dec 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
We need functionalities to hash an arbitrary slice of bytes to elements of the curve.
This includes
hash_to_scalar
andhash_to_point
implementations.Possible solution design or implementation
hash_to_scalar
will sample an element of2^512
bits and take the result modulor
withhash_to_point
will be implemented naively with the same algorithm as used to deriveGENERATOR_NUMS
:r
Note: This implementation of
hash_to_point
is not ideal, in the long run we want to implement an algorithm outlined here, but we start with this implementation in order to be able to use the API already.Additional context
See bls #137
and bls #139
The text was updated successfully, but these errors were encountered: