jellyfish
jellyfish copied to clipboard
[Refactor] Adding constructors for KZG parameters
Issue: breaking changes after editing the fields of SRS
/VerifierParams
:
https://espresso.zulipchat.com/#narrow/stream/330838-Crypto/topic/Powers.20of.20g.2Ch/near/405171215
TODO: Add constructor methods new()
for KZG parameters, including SRS
, ProverParams
, and VerifierParams
.
(cc @mrain @ggutoski @alxiong )
we should also add From<ark_poly_commit::kzg10::UniversalParam> for SRS
that avoids expensive memory copy (if possible)
it's possible that in order to avoid mem-copy without unsafe rust, we can only write specialized conversion for concrete types instead of generic function.