Skip to content

Commit

Permalink
add solve ock
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiaobleach committed Mar 12, 2024
1 parent 36ebe43 commit f449717
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/groth16/bls12-377/icicle/icicle.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,13 @@ func Prove(r1cs *cs.R1CS, pk *ProvingKey, fullWitness witness.Witness, opts ...b
solver.OverrideHint(r1cs.GkrInfo.ProveHintID, cs.GkrProveHint(r1cs.GkrInfo.HashName, &gkrData)))
}

//solveLock.Lock()
solveLock.Lock()
_solution, err := r1cs.Solve(fullWitness, solverOpts...)
if err != nil {
//solveLock.Unlock()
solveLock.Unlock()
return nil, err
}
//solveLock.Unlock()
solveLock.Unlock()

solution := _solution.(*cs.R1CSSolution)
wireValues := []fr.Element(solution.W)
Expand Down

0 comments on commit f449717

Please sign in to comment.