remove requirements on _pairing_ and `ark-poly-commit`
changelog
- remove
ark-poly-commit
from the dependencies - remove the old
setup.rs
- add temporary
foo.rs
which define (some details are ommited for brevity)struct Powers<F, G>
struct Commitment<F, G>
fn build_powers<F, G>(...) -> Powers<F, G>
fn commit<F, G, P>(powers: &Powers<F, G>, polynomial: &P) -> Commitment<F, G>
- tests
-
foo.rs
is then renamed tosetup.rs
- two new
KomodoError
variants have been created to replaceark_poly_commit::Error
DegreeIsZero
TooFewPowersInTrustedSetup(usize, usize)
- finally, all the past mentions to
E: Pairing
andsetup::random
have been replaced withF, G
andsetup::build_powers
respectively
Edited by STEVAN Antoine