Skip to content

Conversation

viktorking7
Copy link

Description

  • Added a guard in KZG commit to cap polynomial coefficients by available SRS powers
  • Prevents out-of-bounds slice and potential panic when SRS is underprovisioned
  • Kept public API unchanged; behavior now safely truncates inputs instead of panicking

Why

  • Ensure robustness against malformed or oversized inputs
  • Avoid denial-of-service via runtime panics in critical crypto code paths

@viktorking7 viktorking7 requested a review from a team as a code owner September 24, 2025 14:44
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.

1 participant