Closed dmpierre closed 10 months ago
Nice work!
I'm wondering if we could maybe merge the
SumMulsGammaPowsEqSigmaGadget
,SumCiMulProdThetajGadget
intoComputeCFromSigmasAndThetasGadget
.The reasoning is that
SumMulsGammaPowsEqSigmaGadget
andSumCiMulProdThetajGadget
are not used anywere else than insideComputeCFromSigmasAndThetasGadget
, so the methodsSumMulsGammaPowsEqSigmaGadget::sum_muls_gamma_pows_eq_sigma()
andSumCiMulProdThetajGadget::sum_ci_mul_prod_thetaj()
could be private methods ofComputeCFromSigmasAndThetasGadget
, since at the end they are internal intermediate steps of theComputeCFromSigmasAndThetasGadget::compute_c_from_sigmas_and_thetas()
method. AndComputeCFromSigmasAndThetasGadget::compute_c_from_sigmas_and_thetas()
being the only public method of the gadget. In this way we avoid having extra complexname-gadgets exposed publicly.How do you see it?
Great idea, makes things much cleaner. Done with 4566385!
Gadget to compute $\sum_{j \in [t]} \gamma^{j} \cdot e_1 \cdot \sigma_j + \gamma^{t+1} \cdot e2 \cdot \sum{i=1} ci * \prod{j \in S_i} \theta_j$. This is the sum computed by the verifier and laid out in section 5, step 5 of "A multi-folding scheme for CCS".
Gadget methods defined here. Test implemented here.