taurushq-io / multi-party-sig

Implementation of protocols for threshold signatures
Apache License 2.0
311 stars 120 forks source link

Parallelize operations when possible #51

Closed cronokirby closed 3 years ago

cronokirby commented 3 years ago

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.