dusk-network / dusk-zerocaf

Zerocaf: A library built for EC operations in Zero Knowledge.
https://dusk.network/
MIT License
53 stars 11 forks source link

Implement point generation tools. #57

Closed CPerezz closed 5 years ago

CPerezz commented 5 years ago

Since the end-user will need to create/generate/import points into the corresponding coordinates encoding: EdwardsPoint or ProjectivePoint, we need to provide methods for it as:

This can be done by implementing:

Both implementations should create a ProjectivePoint which can be easily converted to an EdwardsPoint by 3M + 1I

Any other suggestions about from where we can generate new points? @Bounce23

CPerezz commented 5 years ago

Also mention that Power by squaring was implemented on 5eda271, which enables the implementation of the Tonelli-Shanks algorithm to solve modular sqrts.

CPerezz commented 5 years ago

Once point_gen branch gets merged, this will be closed since all of the tools were finished in d6c0a9e.

Now it's time to create functions for point generation and random point generation to close #51.