Skip to content

Commit

Permalink
fix: buffer sufficient size
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokub committed Oct 9, 2024
1 parent ef45936 commit cf7e75a
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ecc/bls12-377/shplonk/shplonk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions ecc/bls12-381/shplonk/shplonk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions ecc/bls24-315/shplonk/shplonk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions ecc/bls24-317/shplonk/shplonk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions ecc/bn254/shplonk/shplonk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions ecc/bw6-633/shplonk/shplonk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions ecc/bw6-761/shplonk/shplonk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions internal/generator/shplonk/template/shplonk.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ func BatchOpen(polynomials [][]fr.Element, digests []kzg.Digest, points [][]fr.E
maxSizePolys = len(polynomials[i])
}
}
for i := range points {
if len(points[i])+1 > maxSizePolys {
maxSizePolys = len(points[i]) + 1
}
}
nbPoints := 0
sizeSi := make([]int, len(points))
for i := 0; i < nbPolynomials; i++ {
Expand Down

0 comments on commit cf7e75a

Please sign in to comment.