Simplified Polynomial Commitment Trait #127
Labels
D-medium
Difficulty: medium
P-medium
Priority: medium
T-design
Type: discuss API design and/or research
T-refactor
Type: cleanup/refactor
Milestone
For PLONK, we only need a subset of the
ark-poly-commit
interface and a lot of theark-poly-commit
APIs are unnecessarily restrictive. I propose the following trait for the generic PLONK interface:This design has some advantages over the
ark-poly-commit
interfaces like:String
s that we are also not usingark-poly-commit
interfaces require a method calledcommit
which performs an iterated sequence of commits. For each of the implementations in the standard arkworks library, this method does exactly the same thing (the implementation defined incommit_many
) but makes it required, not optional.It would then be relatively easy to implement KZG, IPA, etc. under this new API and expose them to users. Also, it would also be relatively easy to write an adapter from any
ark_poly_commit
implementer to this API since we have fewer requirements.The text was updated successfully, but these errors were encountered: