fix for V-SCT-VUL-015

This commit is contained in:
Kevin Jue
2023-12-18 17:58:56 -08:00
parent 2043890a76
commit 96171410b0
6 changed files with 19 additions and 44 deletions

View File

@@ -15,13 +15,13 @@ type Chip struct {
api frontend.API `gnark:"-"`
poseidonChip *poseidon.GoldilocksChip
poseidonBN254Chip *poseidon.BN254Chip
spongeState [poseidon.SPONGE_WIDTH]gl.Variable
spongeState poseidon.GoldilocksState
inputBuffer []gl.Variable
outputBuffer []gl.Variable
}
func NewChip(api frontend.API) *Chip {
var spongeState [poseidon.SPONGE_WIDTH]gl.Variable
var spongeState poseidon.GoldilocksState
var inputBuffer []gl.Variable
var outputBuffer []gl.Variable
for i := 0; i < poseidon.SPONGE_WIDTH; i++ {