0xPolygonZero / plonky2

Apache License 2.0
763 stars 285 forks source link

refactor: remove superfluous type parameters #1590

Closed Daniel-Aaron-Bloom closed 1 month ago

Daniel-Aaron-Bloom commented 4 months ago

Many types and functions use generics with parameters like:

F: RichField + Extendable<D>, C: GenericConfig<D, F = F>

Instead, those places could use C: GenericConfig<D>, substituting C::F in place of F where necessary.

PackedField is a similar story.

Removing these parameters can simplify type declarations and turbofishes for downstream crates.