Better expose prover_server (generic) util functions #417
Labels
c++
Task related to the c++ part of the code base
code-quality
Task related to the code quality (refactor, enhancements etc.)
Related to clearmatics/zecale#89 (comment)
Despite being mere wrappers around the libzeth functions, some functions in the
prover_server
(Zeth) andaggregator_server
(Zecale) are duplicated across the projects (functions likeload_keypair
,write_keypair
,write_constraint_system
etc). Duplicated code is prone to inconsistencies (one version changed and not the others) which is not good. Also, with code: less is more. Less code is less code to maintain and always a good idea. Let's see how we could package these utils function on the prover server to better expose them and use them straight in other projects like Zecale. Maybe we could create a new namespace likelibzeth::server
that contains all these functions and we could use them straight inprover_server.cpp
in Zeth and inaggregator_server.cpp
in Zecale.The text was updated successfully, but these errors were encountered: