dusk-network / plonk

Pure Rust implementation of the PLONK ZKProof System done by the Dusk team
https://dusk-network.github.io/plonk
Mozilla Public License 2.0
535 stars 148 forks source link

Change Composer into a struct #802

Closed moCello closed 8 months ago

moCello commented 8 months ago

Summary

Currently we have the Composer trait that encodes the functionalities for composing a circuit. Since we only ever implement this trait onto the Builder, we an morph the trait and struct into a single Composer struct. This comes with the added benefit that we can hide some of the trait functionalities from the public API that are now exposed but marked as deprecated (e.g. uninitialized, append_witness_internal, append_custom_gate_internal).