HarryR / ethsnarks

A toolkit for viable zk-SNARKS on Ethereum, Web, Mobile and Desktop
GNU Lesser General Public License v3.0
240 stars 57 forks source link

Submodules for different gadgets & components #13

Open HarryR opened 6 years ago

HarryR commented 6 years ago

It would be good to make the libsnark based gadgets available as submodules so they can be included in other projects.

Will figure out how to do this.

HarryR commented 6 years ago

I think it could be split into the following sub-repos:

Then the main ethsnarks repository combines them together, along with a libsnark distribution and build system, then ethsnarks-emscripten uses ethsnarks as a submodule to build it all for WebAssembly.

This would allow other projects to import only the functionality they need in the appropriate repository.

The ethsnarks repository would still have some C++ code where it combines the gadgets together.

My concerns are: