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

Support scalar mul of arkworks curve using precomputed table #34

Merged
merged 8 commits into from
Mar 26, 2022

Conversation

tsunrise
Copy link
Contributor

@tsunrise tsunrise commented Mar 8, 2022

Adds support for scalar multiplication using precomputed bases.

Closes: #24

manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-crypto/src/ecc.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-crypto/src/ecc.rs Outdated Show resolved Hide resolved
@tsunrise
Copy link
Contributor Author

Can someone allow force push on branches other than main? I messed up with commit histories @bhgomes @stechu

Copy link
Contributor

@bhgomes bhgomes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments on the implementation that should be addressed before merging, but we still need to do some more work to actually be able to use this optimization in the circuit.

manta-crypto/src/ecc.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Show resolved Hide resolved
@tsunrise tsunrise requested a review from bhgomes March 22, 2022 04:30
Copy link
Contributor

@bhgomes bhgomes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few more changes and we'll be good to go!

manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@bhgomes bhgomes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more thing about test naming.

manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
@tsunrise tsunrise requested a review from bhgomes March 25, 2022 05:04
manta-crypto/src/ecc.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
manta-pay/src/crypto/ecc/arkworks.rs Outdated Show resolved Hide resolved
@bhgomes bhgomes merged commit a91d908 into main Mar 26, 2022
@bhgomes bhgomes deleted the scalar_mul_precomputed branch March 26, 2022 05:17
bhgomes added a commit that referenced this pull request Mar 26, 2022
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.

Use Pre-computed Powers in Scalar Multiplication
2 participants