mirror of
https://github.com/arnaucube/gnark-plonky2-verifier.git
synced 2026-01-11 16:41:32 +01:00
fix for V-SCT-VUL-024
This commit is contained in:
@@ -111,7 +111,7 @@ func (c *Chip) GetExtensionChallenge() gl.QuadraticExtensionVariable {
|
||||
}
|
||||
|
||||
func (c *Chip) GetHash() poseidon.GoldilocksHashOut {
|
||||
return [4]gl.Variable{c.GetChallenge(), c.GetChallenge(), c.GetChallenge(), c.GetChallenge()}
|
||||
return [poseidon.POSEIDON_GL_HASH_SIZE]gl.Variable{c.GetChallenge(), c.GetChallenge(), c.GetChallenge(), c.GetChallenge()}
|
||||
}
|
||||
|
||||
func (c *Chip) GetFriChallenges(
|
||||
|
||||
@@ -9,10 +9,11 @@ const HALF_N_FULL_ROUNDS = 4
|
||||
const N_PARTIAL_ROUNDS = 22
|
||||
const SPONGE_WIDTH = 12
|
||||
const SPONGE_RATE = 8
|
||||
const POSEIDON_GL_HASH_SIZE = 4
|
||||
|
||||
type GoldilocksState = [SPONGE_WIDTH]gl.Variable
|
||||
type GoldilocksStateExtension = [SPONGE_WIDTH]gl.QuadraticExtensionVariable
|
||||
type GoldilocksHashOut = [4]gl.Variable
|
||||
type GoldilocksHashOut = [POSEIDON_GL_HASH_SIZE]gl.Variable
|
||||
|
||||
type GoldilocksChip struct {
|
||||
api frontend.API `gnark:"-"`
|
||||
|
||||
Reference in New Issue
Block a user