phoreproject / bls

Go implementation of the BLS12-381 pairing
Apache License 2.0
89 stars 31 forks source link

Fix FR inverse function and add test case #8

Closed boohyunsik closed 5 years ago

boohyunsik commented 5 years ago

Hello, I am using this library for implementing threshold encryption. I need to get inverse of some FR element, but I experienced infinitely loop in inverse(). so I modified logic for getting inverse, and I got a result what I want. Please review my code. Thank you for good library. :-)

meyer9 commented 5 years ago

Looks good! Thank you for the contribution!