Closed boumba100 closed 2 years ago
@boumba100 It seems like this library had some benefits from https://github.com/kilic/bls12-381 for bls12-381.
In there we already stated that group or pairing engine instances are not suitable for concurrency since we preallocate temporary variables to gain some efficiency. So for each thread a new instance should be created.
@kilic this is a fork from your library that we audited. We did submit some PRs back to you but they were ignored. I'm open to doing so again if you are.
@mikelodder7 Any updates on this issue? What's the timeline that this issue will get resolved?
Probably in the next few days. We’re just about done
Should be fixed with #49
I’m getting the following error when I call
g2.MulScalar
concurrently:It looks like the ‘q’ variable somehow gets dereferenced.
Since Golang is quite new to me, I don’t have a solution at the moment but I think pointing this out could be useful.
Here is some code to reproduce the error