Skip to content

Conversation

radik878
Copy link

@radik878 radik878 commented Sep 4, 2025

Add explicit validation that public_inputs.len() + 1 equals pvk.vk.gamma_abc_g1.len() and return an error on mismatch. This prevents silent truncation by zip when the number of public inputs is incorrect, aligning native verification behavior with the gadget verifier where input length is asserted. Ensures predictable API behavior and avoids subtle verification misuses.

@radik878 radik878 requested a review from a team as a code owner September 4, 2025 08:46
@radik878 radik878 requested review from z-tech, mmagician and weikengchen and removed request for a team September 4, 2025 08:46
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