Skip to content

Commit

Permalink
fix(keccak-pi): exposes the statement of the keccak in wizard. (#319)
Browse files Browse the repository at this point in the history
Co-authored-by: Arya Tabaie <arya.pourtabatabaie@gmail.com>
  • Loading branch information
AlexandreBelling and Tabaie authored Nov 25, 2024
1 parent 9361d4a commit 3ecd750
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions prover/circuits/pi-interconnection/keccak/customize_keccak.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package keccak

import (
"github.com/consensys/linea-monorepo/prover/protocol/column"
"github.com/consensys/linea-monorepo/prover/protocol/wizard"
"github.com/consensys/linea-monorepo/prover/utils"

Expand All @@ -21,14 +22,18 @@ func NewCustomizedKeccak(comp *wizard.CompiledIOP, maxNbKeccakF int) *module {

inp = keccak.KeccakOverBlockInputs{
LaneInfo: keccak.LaneInfo{
Lanes: comp.InsertCommit(0, "Lane", size),
IsFirstLaneOfNewHash: comp.InsertCommit(0, "IsFirstLaneOfNewHash", size),
IsLaneActive: comp.InsertCommit(0, "IsLaneActive", size),
Lanes: comp.InsertProof(0, "Lane", size),
IsFirstLaneOfNewHash: comp.InsertProof(0, "IsFirstLaneOfNewHash", size),
IsLaneActive: comp.InsertProof(0, "IsLaneActive", size),
},
MaxNumKeccakF: maxNbKeccakF,
}
m = keccak.NewKeccakOverBlocks(comp, inp)
)

comp.Columns.SetStatus(m.HashHi.GetColID(), column.Proof)
comp.Columns.SetStatus(m.HashLo.GetColID(), column.Proof)

return &module{
keccak: *m,
}
Expand Down

0 comments on commit 3ecd750

Please sign in to comment.