Skip to content

Commit 23edffb

Browse files
committed
xxx: work
1 parent 3629839 commit 23edffb

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

prover/zkevm/prover/bls/circuits_add.go

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,12 @@ type BlsAddDataSource struct {
3030
}
3131

3232
func newAddDataSource(comp *wizard.CompiledIOP, g group) *BlsAddDataSource {
33-
var selectorCs ifaces.Column
34-
switch g {
35-
case G1:
36-
selectorCs = comp.Columns.GetHandle("bls.CIRCUIT_SELECTOR_BLS_G1_ADD")
37-
case G2:
38-
selectorCs = comp.Columns.GetHandle("bls.CIRCUIT_SELECTOR_BLS_G2_ADD")
39-
default:
40-
panic("unknown group for bls add data source")
41-
}
4233
return &BlsAddDataSource{
43-
CsAdd: selectorCs,
34+
CsAdd: comp.Columns.GetHandle(ifaces.ColIDf("bls.CIRCUIT_SELECTOR_%s_ADD", g.String())),
4435
Limb: comp.Columns.GetHandle("bls.LIMB"),
4536
Index: comp.Columns.GetHandle("bls.INDEX"),
46-
IsData: comp.Columns.GetHandle("bls.IS_BLS_ADD_DATA"),
47-
IsRes: comp.Columns.GetHandle("bls.IS_BLS_ADD_RESULT"),
37+
IsData: comp.Columns.GetHandle(ifaces.ColIDf("bls.DATA_%s_ADD", g.String())),
38+
IsRes: comp.Columns.GetHandle(ifaces.ColIDf("bls.RSLT_%s_ADD", g.String())),
4839
}
4940
}
5041

0 commit comments

Comments
 (0)