Skip to content
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

Montgomery Elligator Support and Random Point Generation on Edwards Curve #326

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

suyash67
Copy link

@suyash67 suyash67 commented Jun 9, 2020

With an intention of having hash-to-curve methods which are applicable to EdwardsPoint, I wrote elligator support for Montgomery curve and using that, added methods like EdwardsPoint::hash_from_bytes, EdwardsPoint::from_uniform_bytes, EdwardsPoint::random for Edwards curve.

Note that in the last step of from_uniform_bytes, I multiply the resulting EdwardsPoint with scalar Scalar::from(8u8) in order to make sure it lies in the prime order subgroup. Although this is exactly why Ristretto must be used to avoid such modifications which might result into vulnerabilities, but for existing systems which use Edwards' prime order subgroup, support for such functions becomes necessary. If someone wants to write a protocol for say Monero (Edwards curve) and leverage the multi-scalar multiplication and other features of curve25519-dalek, support of such functions for EdwardsPoints becomes crucial.

An issue was raised by @omershlo in the past for the same. #188

Base automatically changed from master to main March 25, 2021 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant