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

Replace FixedBaseScalarMul blackbox function with a MultiScalarMul opcode #4928

Closed
TomAFrench opened this issue Apr 26, 2024 · 0 comments · Fixed by AztecProtocol/aztec-packages#6097
Assignees

Comments

@TomAFrench
Copy link
Member

TomAFrench commented Apr 26, 2024

We currently have a FixedBaseScalarMul and an open PR to add a variable base version as well.

We often perform multiple scalar multiplications in one go (e.g. in schnorr verification) and this would be most efficient if it were packaged up into a MultiScalarMul opcode as this makes it easier for the backend to choose the best constraint implementation.

The current FixedBaseScalarMul would then be msm([generator_point_constant], [scalar]), the backend could then recognise that the witnesses for generator_point_constant were constants and then perform a simple fixed-base scalar mul.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants