File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -30,21 +30,12 @@ type BlsAddDataSource struct {
3030}
3131
3232func 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
You can’t perform that action at this time.
0 commit comments