status-im / nim-blscurve

Nim implementation of BLS signature scheme (Boneh-Lynn-Shacham) over Barreto-Lynn-Scott (BLS) curve BLS12-381
Apache License 2.0
26 stars 11 forks source link

avoid blocking batchVerifyParallel #154

Closed arnetheduck closed 1 year ago

arnetheduck commented 1 year ago

The current version of batchVerifyParallel calls syncAll which syncs on all executing tasks.

This PR changes this to syncing a Flowvar instead thus allowing batchVerifyParallel to be called as a task itself.

Requires https://github.com/status-im/nim-taskpools/pull/33