Skip to content

[spartan] Generify spartan-verifier and spartan-prover over F: Field instead of hardcoded B128#1440

Merged
jimpo merged 1 commit intomainfrom
spartan-generify-field
Apr 7, 2026
Merged

[spartan] Generify spartan-verifier and spartan-prover over F: Field instead of hardcoded B128#1440
jimpo merged 1 commit intomainfrom
spartan-generify-field

Conversation

@jimpo
Copy link
Copy Markdown
Collaborator

@jimpo jimpo commented Apr 7, 2026

Summary

  • Make IOPVerifier<F: Field> and IOPProver<F: Field> generic, moving F from method-level to struct-level type parameter
  • Remove B128 default from ConstraintSystemPadded<F: Field> and generify Verifier::setup to accept ConstraintSystem<F>
  • Generify ZKWrappedVerifierChannel and ZKWrappedProverChannel over F
  • B128 remains as concrete type in tests and config aliases

Test plan

cargo test -p binius-spartan-verifier -p binius-spartan-prover

…instead of hardcoded B128

Replace hardcoded B128 with generic field type parameters across the
spartan-verifier, spartan-prover, and their wrapper submodules:

- Make IOPVerifier<F: Field> and IOPProver<F: Field> generic, moving F
  from method-level to struct-level type parameter
- Remove B128 default from ConstraintSystemPadded<F: Field>
- Generify ZKWrappedVerifierChannel and ZKWrappedProverChannel over F
- Update Verifier::setup to accept ConstraintSystem<F> instead of
  ConstraintSystem<B128>
- B128 remains as concrete type in tests and config aliases
@jimpo jimpo merged commit 6f8039b into main Apr 7, 2026
15 checks passed
@jimpo jimpo deleted the spartan-generify-field branch April 7, 2026 03:36
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