Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

KZG Key Generation, Save, Load #368

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

Sun-Jc
Copy link

@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
Author

Sun-Jc commented Mar 2, 2025

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant