Skip to content

More Blindfold ops#232

Open
Acentelles wants to merge 2 commits into
mainfrom
blindfold-remaining-ops
Open

More Blindfold ops#232
Acentelles wants to merge 2 commits into
mainfrom
blindfold-remaining-ops

Conversation

@Acentelles
Copy link
Copy Markdown
Collaborator

@Acentelles Acentelles commented Apr 29, 2026

  • ScalarConstDiv: first operator with a committed polynomial (ScalarConstDivNodeRemainder). Adds the 4 BlindFold constraint methods, wires prover/verifier dispatch, handles ZK-mode append_dense for committed openings on the verifier, and adds test_scalar_const_div_zk.
  • And: adds ModelBuilder::and() and test_and_zk. And delegates to Mul (already wired), so no new constraint code needed.
  • Div: adds BlindFold constraint methods to DivParams (output constraint with 4 openings and a degree-2 product term: eq_eval * right * q + eq_eval * R - eq_eval * left). Test stub is ignored; full pipeline wiring (custom-flow + range checks) is in the blindfold-custom-flow branch.
  • Pipeline refactoring: extracts prove_zk_eval_reduction / verify_zk_eval_reduction helpers (preparing for custom-flow operators)
  • Verifier append_dense ZK mode: inserts F::zero() placeholder instead of panicking on missing keys.
  • Prover append_dense: pushes to pending_claims so BlindFold can capture committed polynomial claims.

First operator with a committed polynomial (ScalarConstDivNodeRemainder).
Adds constraint methods, wires prover/verifier dispatch, handles ZK-mode
append_dense for committed openings, and adds ZK e2e test.
- And: add ModelBuilder::and(), add test_and_zk (passes, delegates to Mul)
- Div: add 4 BlindFold constraint methods to DivParams (output constraint
  uses 4 openings with degree-2 product term: eq_eval * right * q)
- Div test stub (ignored; needs custom-flow pipeline + range check constraints)
- Extract prove_zk_eval_reduction / verify_zk_eval_reduction helpers
@Acentelles Acentelles force-pushed the blindfold-remaining-ops branch from 20223fb to 633979d Compare April 29, 2026 13:46
@Acentelles Acentelles force-pushed the blindfold-scalar-const-div branch from 9c6ec9f to 619ae33 Compare April 29, 2026 13:46
@Acentelles Acentelles changed the base branch from blindfold-scalar-const-div to main April 29, 2026 13:47
@Acentelles Acentelles changed the base branch from main to blindfold-scalar-const-div April 29, 2026 13:47
@Acentelles Acentelles changed the base branch from blindfold-scalar-const-div to main April 29, 2026 13:48
@Acentelles Acentelles changed the title Blindfold remaining ops More Blindfold ops Apr 29, 2026
@Acentelles Acentelles marked this pull request as ready for review April 29, 2026 13:55
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