zkBob / libzkbob-rs

Apache License 2.0
1 stars 3 forks source link

Add multicore/singlecore builds #32

Closed AllFi closed 1 year ago

AllFi commented 1 year ago

This PR is based on https://github.com/zeropoolnetwork/libzeropool-rs/pull/32 and some other changes in libzeropool-rs repository and is adapted for our multithread implementation.

In this PR, the following was done:

  1. Function parse_txs was modified so that rayon's parallel iterator is used only if multicore feature is set. See vec_into_iter in helpers.rs.
  2. build script was modified to build singlecore and multicore versions of the library, additionally debug versions are being built. clean and publish scripts were modified accordingly.