Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

ITEM 2 - Implement and test Add_and_Double for Point multiplication over Doppio. #32

Closed
CPerezz opened this issue Jun 27, 2019 · 2 comments · Fixed by #64
Closed

ITEM 2 - Implement and test Add_and_Double for Point multiplication over Doppio. #32

CPerezz opened this issue Jun 27, 2019 · 2 comments · Fixed by #64
Assignees
Labels
enhancement New feature or request testing This feature requires to be tested.

Comments

@CPerezz
Copy link
Contributor

CPerezz commented Jun 27, 2019

This issue lives under the item: https://gitlab.dusk.network/dusk-org/tech/issues/2

The last operation to implement over the Doppio Curve is add and doubling which allows us to:

Given k and G compute P = kG.

In order to do it, we should design a table with pre-computed values [G, 2G, 4G, 8G, 16G .... ] So we can then pick just the ones we need seeing our Scalar in binary form.

I think this can reduce the amount of time we spend computing against adding a point to itself Scalar times.

For a better understanding, take a look at:
enter image description here

Maybe @decentralisedkev can help us discussing about the implementation possibilities.

@CPerezz CPerezz added enhancement New feature or request research Need to research about this. labels Jun 27, 2019
@CPerezz
Copy link
Contributor Author

CPerezz commented Jun 27, 2019

After talking with @decentralisedkev and @Bounce23 , we will go for an implementation of the standard add and double point multiplication algorithm.

Since it will allow us to use fewer constraints on the R1CS and so, be more performant.

@CPerezz
Copy link
Contributor Author

CPerezz commented Jul 3, 2019

This was done on 4f11878. We will now wait until we get values for testing the implementation of the algorithm.

@CPerezz CPerezz added testing This feature requires to be tested. and removed research Need to research about this. labels Jul 3, 2019
@CPerezz CPerezz changed the title ITEM 2 - Implement Add_and_Double for Point multiplication over Doppio. ITEM 2 - Implement and test Add_and_Double for Point multiplication over Doppio. Jul 3, 2019
CPerezz added a commit that referenced this issue Jul 10, 2019
This closes the development part of #32.

Scalar multiplication: compute `Scalar * self`.
This implementation uses the algorithm:
`add_and_doubling` which is the standard one for
this operations and also adds less constraints on
R1CS.

Hankerson, Darrel; Vanstone, Scott; Menezes, Alfred (2004).
Guide to Elliptic Curve Cryptography.
Springer Professional Computing. New York: Springer-Verlag.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request testing This feature requires to be tested.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants