crate-crypto / go-eth-kzg

Apache License 2.0
29 stars 22 forks source link

Expose paralellization config #44

Closed karalabe closed 1 year ago

karalabe commented 1 year ago

This library seems to be using some concurrency internally via https://github.com/ConsenSys/gnark-crypto/blob/master/ecc/bls12-381/multiexp.go#L120, which is controlled by https://github.com/ConsenSys/gnark-crypto/blob/f93a56c714c4e6266429cac111a004e9eec7daa0/ecc/ecc.go#L118

Now I have 2 issues here:

All in all I think it would be nice to be able to somehow control the concurrency from the outside, because my 2c is that the default behavior should be to have it off and only enable in in scenarios where the caller knows the benefit might be there.