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 u128 mul with u64 muls for wasm target #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AllFi
Copy link
Collaborator

@AllFi AllFi commented Jun 27, 2023

It looks like 4 u64 multiplications work faster than one u128 in wasm.

  • i7-10750H: Proving time in wasm was reduced from ~15 s to 13 s (~13%)
  • iPhone 11: Proving time in wasm was reduced from ~35.5 s to 31 s (~13%)

This PR is similar to zkBob/fawkes-crypto#15 but optimizes proving. We need to update phase2-bn254 to use this crate instead of ff_ce.

src/lib.rs Show resolved Hide resolved
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.

5 participants