|
@ -118,6 +118,9 @@ func (p *PlonkChip) checkPartialProducts( |
|
|
|
|
|
|
|
|
func (p *PlonkChip) evaluateGateConstraints(vars EvaluationVars) []QuadraticExtension { |
|
|
func (p *PlonkChip) evaluateGateConstraints(vars EvaluationVars) []QuadraticExtension { |
|
|
constraints := make([]QuadraticExtension, p.commonData.NumGateConstraints) |
|
|
constraints := make([]QuadraticExtension, p.commonData.NumGateConstraints) |
|
|
|
|
|
for i, _ := range constraints { |
|
|
|
|
|
constraints[i] = p.qeAPI.ZERO_QE |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
for i, gate := range p.commonData.Gates { |
|
|
for i, gate := range p.commonData.Gates { |
|
|
selectorIndex := p.commonData.SelectorsInfo.selectorIndices[i] |
|
|
selectorIndex := p.commonData.SelectorsInfo.selectorIndices[i] |
|
|