Skip to content

Commit 669e53f

Browse files
committed
refactor(limitless): fix GL multiset check
1 parent 54f0257 commit 669e53f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

prover/protocol/distributed/module_gl.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -682,11 +682,8 @@ func (a *ModuleGLAssignSendReceiveGlobal) Run(run *wizard.ProverRuntime) {
682682
// [ModuleGL.ReceivedValuesGlobalHash].
683683
func (a *ModuleGLCheckSendReceiveGlobal) Run(run wizard.Runtime) error {
684684

685-
if err := a.ModuleGL.checkMultiSetHash(run); err != nil {
686-
return err
687-
}
688-
689685
if len(a.ReceivedValuesGlobalMap) == 0 {
686+
a.ModuleGL.checkMultiSetHash(run)
690687
return nil
691688
}
692689

@@ -762,6 +759,8 @@ func (a *ModuleGLCheckSendReceiveGlobal) Run(run wizard.Runtime) error {
762759
)
763760
}
764761

762+
a.ModuleGL.checkMultiSetHash(run)
763+
765764
for i := range a.ExplicitlyVerifiedGlobalCsCompletion {
766765
res := accessors.EvaluateExpressionExt(run, a.ExplicitlyVerifiedGlobalCsCompletion[i])
767766
if !res.IsZero() {
@@ -777,9 +776,8 @@ func (a *ModuleGLCheckSendReceiveGlobal) Run(run wizard.Runtime) error {
777776
// [ModuleGL.ReceivedValuesGlobalHash].
778777
func (a *ModuleGLCheckSendReceiveGlobal) RunGnark(api frontend.API, run wizard.GnarkRuntime) {
779778

780-
a.ModuleGL.checkGnarkMultiSetHash(api, run)
781-
782779
if len(a.ReceivedValuesGlobalMap) == 0 {
780+
a.ModuleGL.checkGnarkMultiSetHash(api, run)
783781
return
784782
}
785783

@@ -848,6 +846,8 @@ func (a *ModuleGLCheckSendReceiveGlobal) RunGnark(api frontend.API, run wizard.G
848846
api.AssertIsEqual(hashRcvComputed[i], rcvGlobalHash[i].Native())
849847
}
850848

849+
a.ModuleGL.checkGnarkMultiSetHash(api, run)
850+
851851
koalaAPI := koalagnark.NewAPI(api)
852852

853853
for i := range a.ExplicitlyVerifiedGlobalCsCompletion {

0 commit comments

Comments
 (0)