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

KZG Key Generation, Save, Load #368

Merged
merged 18 commits into from
Mar 4, 2025
Merged

Conversation

Sun-Jc
Copy link
Contributor

@Sun-Jc Sun-Jc commented Mar 2, 2025

  1. Faster KZG Setup using fixed base exponentiation comb (batch) and parallel powers of tau;

  2. Save / load commitment keys (of KZG and Pedersen) to / from a ptau file, e.g. https://github.com/privacy-scaling-explorations/perpetualpowersoftau
    Closes issue Load existing KZG setup parameters #270

Benchmark

  • Num of powers of taus: 2097152, i.e. $2^{21}$
  • Computing powers of tau: 15.4ms
    • Baseline: 46ms
  • Computation of fixed base exponentiation: 3.2s
    • Baseline: 24.3s
  • File size: 128MB
  • Save to file: 2.2s
  • Load from file: 62ms
    • Baseline: 16.5s

Example to generate keys and save: cargo run -r --example kzg_keygen_tools

@Sun-Jc
Copy link
Contributor Author

Sun-Jc commented Mar 2, 2025

@microsoft-github-policy-service agree company="Microsoft"

@srinathsetty srinathsetty merged commit cf02e05 into microsoft:main Mar 4, 2025
7 checks passed
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.

2 participants