This creates a big abstraction, a "Pool" which can handle search and parallel execution job. I've elevated it to the public API, because handling destruction internally is tricky. You can also simply pass a nil Pool and have things work in a single-threaded way, so this seems like a reasonable API.
You also need to expose the Pool for Paillier anyways.
Fixes #42.
This creates a big abstraction, a "Pool" which can handle search and parallel execution job. I've elevated it to the public API, because handling destruction internally is tricky. You can also simply pass a nil Pool and have things work in a single-threaded way, so this seems like a reasonable API.
You also need to expose the Pool for Paillier anyways.