iden3 / go-rapidsnark

go-rapidsnark
Apache License 2.0
20 stars 5 forks source link

Copy bn256 package from go-ethereum #13

Closed OBrezhniev closed 1 year ago

OBrezhniev commented 1 year ago

Copy bn256 package (BSD 3-Clause license) from go-ethereum to remove go-ethereum dependency (GPL/LGPL)

OBrezhniev commented 1 year ago

I don't know if it suits us, but there is a golang.org/x implementation of bn256. https://pkg.go.dev/golang.org/x/crypto/bn256

It doesn't work for us, because it has no PairingCheck function, and it's hard to implement just it, because it depends on private functions and structure types from golang.org/x/crypto/bn256.