-
Notifications
You must be signed in to change notification settings - Fork 481
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
Hashing points #218
Comments
Yes, in order to hash points, they have to be canonicalized. Depending on the application it can make sense to keep both forms around. This requires being able to maintain an invariant that the two representations are the same; the type system helps. If the decompressed points are supposed to be fed into a verification check, they can be decompressed on the fly using https://doc.dalek.rs/curve25519_dalek/traits/trait.VartimeMultiscalarMul.html#tymethod.optional_multiscalar_mul |
Cool thanks! It easy to test equality faster, but I could not imagine anyway to canonicalize faster. |
For Ristretto points, as long as the data is being fed into a hash, it could be faster to hash |
…k-cryptography#218) Also fixed benchmark build
It's presumably impossible to hash non-compressed points without an inverse or inverse square root, yes? So non-batched scheme should probably keep both the encoded and decoded points around like dalek-cryptography/ed25519-dalek#61 right?
The text was updated successfully, but these errors were encountered: