mirror of
https://github.com/logos-storage/gnark-plonky2-verifier.git
synced 2026-01-03 21:53:10 +00:00
uint64
This commit is contained in:
parent
4914844edb
commit
58914e8f66
@ -9,7 +9,7 @@ type gate interface {
|
||||
}
|
||||
|
||||
func (p *PlonkChip) computeFilter(
|
||||
row int,
|
||||
row uint64,
|
||||
groupRange Range,
|
||||
s QuadraticExtension,
|
||||
manySelector bool,
|
||||
@ -33,10 +33,10 @@ func (p *PlonkChip) computeFilter(
|
||||
func (p *PlonkChip) evalFiltered(
|
||||
g gate,
|
||||
vars EvaluationVars,
|
||||
row int,
|
||||
selectorIndex int,
|
||||
row uint64,
|
||||
selectorIndex uint64,
|
||||
groupRange Range,
|
||||
numSelectors int,
|
||||
numSelectors uint64,
|
||||
) []QuadraticExtension {
|
||||
filter := p.computeFilter(row, groupRange, vars.localConstants[selectorIndex], numSelectors > 1)
|
||||
|
||||
|
||||
@ -136,8 +136,8 @@ func (p *PlonkChip) evaluateGateConstraints(
|
||||
gateConstraints := p.evalFiltered(
|
||||
gate,
|
||||
vars,
|
||||
i,
|
||||
int(selectorIndex),
|
||||
uint64(i),
|
||||
selectorIndex,
|
||||
commonData.SelectorsInfo.groups[selectorIndex],
|
||||
commonData.SelectorsInfo.NumSelectors(),
|
||||
)
|
||||
|
||||
@ -7,8 +7,8 @@ import (
|
||||
type PublicInputGate struct {
|
||||
}
|
||||
|
||||
func (p *PublicInputGate) WiresPublicInputsHash() []int {
|
||||
return []int{0, 1, 2, 3}
|
||||
func (p *PublicInputGate) WiresPublicInputsHash() []uint64 {
|
||||
return []uint64{0, 1, 2, 3}
|
||||
}
|
||||
|
||||
func (p *PublicInputGate) EvalUnfiltered(pc *PlonkChip, vars EvaluationVars) []QuadraticExtension {
|
||||
|
||||
@ -12,6 +12,6 @@ type SelectorsInfo struct {
|
||||
groups []Range
|
||||
}
|
||||
|
||||
func (s *SelectorsInfo) NumSelectors() int {
|
||||
return len(s.groups)
|
||||
func (s *SelectorsInfo) NumSelectors() uint64 {
|
||||
return uint64(len(s.groups))
|
||||
}
|
||||
|
||||
@ -14,6 +14,6 @@ type EvaluationVars struct {
|
||||
publicInputsHash HashOut
|
||||
}
|
||||
|
||||
func (e *EvaluationVars) RemovePrefix(numSelectors int) {
|
||||
func (e *EvaluationVars) RemovePrefix(numSelectors uint64) {
|
||||
e.localConstants = e.localConstants[numSelectors:]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user