-
Notifications
You must be signed in to change notification settings - Fork 1k
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
hash_to_G2 input message size: Why bytes32? #572
Comments
Shouldn't this parameter be treated as a message hash? Maybe rename it to |
the thing that is commonly used in that place across signature algos is some hash of the message -- i would support a renaming if it had broad support -- otherwise this is the kind of thing where if you work in the domain you know what it means from context; i agree it is not perfectly precise :) |
It's also a minor win to force constant message size to reduce variability of runtime of +1 |
Agree on |
Fixed by d3ce995 |
Currently the specs mention that "message" should be bytes32:
This prevents using bigger message as input, for example the third message that was proposed for testing:
Assuming there are situations where longer messages are needed, we would need to hash once before passing to hash_to_G2.
hash_to_G2
will also re-hash inside.Only impact is type signature.
The text was updated successfully, but these errors were encountered: