Skip to content

Commit

Permalink
fix: utils.Max -> max
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabaie committed Dec 26, 2024
1 parent 94a58c5 commit 0f6d281
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions std/recursion/groth16/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
fr_bn254 "github.com/consensys/gnark-crypto/ecc/bn254/fr"
bw6761 "github.com/consensys/gnark-crypto/ecc/bw6-761"
fr_bw6761 "github.com/consensys/gnark-crypto/ecc/bw6-761/fr"
"github.com/consensys/gnark-crypto/utils"
"github.com/consensys/gnark/backend/groth16"
groth16backend_bls12377 "github.com/consensys/gnark/backend/groth16/bls12-377"
groth16backend_bls12381 "github.com/consensys/gnark/backend/groth16/bls12-381"
Expand Down Expand Up @@ -635,7 +634,7 @@ func (v *Verifier[FR, G1El, G2El, GtEl]) AssertProof(vk VerifyingKey[G1El, G2El,

maxNbPublicCommitted := 0
for _, s := range vk.PublicAndCommitmentCommitted { // iterate over commitments
maxNbPublicCommitted = utils.Max(maxNbPublicCommitted, len(s))
maxNbPublicCommitted = max(maxNbPublicCommitted, len(s))
}

commitmentAuxData := make([]*emulated.Element[FR], len(vk.PublicAndCommitmentCommitted))
Expand Down

0 comments on commit 0f6d281

Please sign in to comment.