Skip to content

Commit

Permalink
fixup(compiler); pass the plonk options to [PlonkCheck]
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreBelling committed Feb 22, 2025
1 parent 5990c4d commit 92c61c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion prover/protocol/compiler/plonkinwizard/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,17 @@ func Compile(comp *wizard.CompiledIOP) {

func compileQuery(comp *wizard.CompiledIOP, q *query.PlonkInWizard) {

plonkOptions := make([]plonkinternal.Option, len(q.PlonkOptions))
for i := range plonkOptions {
plonkOptions[i] = q.PlonkOptions[i].(plonkinternal.Option)
}

var (
round = max(q.Data.Round(), q.Selector.Round())
maxNbInstances = q.GetMaxNbCircuitInstances()
ctx = &context{
Q: q,
PlonkCtx: plonkinternal.PlonkCheck(comp, string(q.ID), round, q.Circuit, maxNbInstances),
PlonkCtx: plonkinternal.PlonkCheck(comp, string(q.ID), round, q.Circuit, maxNbInstances, plonkOptions...),
}
)

Expand Down

0 comments on commit 92c61c5

Please sign in to comment.