Skip to content

Commit b83d78c

Browse files
committed
fix: compilation errors
1 parent 6f60e01 commit b83d78c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

prover/crypto/mimc/msethash_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"testing"
55

66
"github.com/consensys/gnark-crypto/ecc"
7+
"github.com/consensys/gnark/constraint"
78
cs "github.com/consensys/gnark/constraint/bls12-377"
89
"github.com/consensys/gnark/frontend"
910
"github.com/consensys/gnark/frontend/cs/scs"
@@ -28,7 +29,7 @@ func TestMSetHash(t *testing.T) {
2829
circuit = &MsetOfSingletonGnarkTestCircuit{}
2930
assigned = &MsetOfSingletonGnarkTestCircuit{}
3031
blsField = ecc.BLS12_377.ScalarField()
31-
builder = scs.NewBuilder
32+
builder = scs.NewBuilder[constraint.U64]
3233
msg = [12]uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
3334
msgField = []field.Element{}
3435
mset = mimc.MSetHash{}

prover/crypto/vortex/commitment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func (p *Params) hashSisHash(colHashes []field.Element) (leaves []types.Bytes32)
154154
leaves = make([]types.Bytes32, numChunks)
155155

156156
parallel.Execute(numChunks, func(start, stop int) {
157-
hasher := mimc.NewMiMC()
157+
hasher := mimc.NewFieldHasher()
158158
for chunkID := start; chunkID < stop; chunkID++ {
159159
startChunk := chunkID * chunkSize
160160
hasher.Reset()

prover/crypto/vortex/opening_verifier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func (v *VerifierInputs) checkColumnInclusion() error {
214214
} else {
215215
// We assume that HashFunc (to be used for Merkle Tree) and NoSisHashFunc()
216216
// (to be used for in place of SIS hash) are the same i.e. the MiMC hash function
217-
hasher := mimc.NewMiMC()
217+
hasher := mimc.NewFieldHasher()
218218
hasher.Reset()
219219
s := hasher.SumElements(selectedSubCol)
220220
leaf = s.Bytes()

0 commit comments

Comments
 (0)