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

General optimisations for libsnark #5

Open HarryR opened 6 years ago

HarryR commented 6 years ago

Need to verify or reflect on the following opportunities for optimisation:

HarryR commented 6 years ago

Interestingly, GMP is very slow in Emscripten with WebAssembly, and 30% slower than an optimised version of a 256bit multiply operation.

Improving performance on WebAssembly would require investigating field operations performance in WebAssembly. Likewise, a 30% speedup could be made by using an alternative to GMP?