This is a fork implementing a kyber/dedis wrapper for this library (among other things)
A Group instance or a pairing engine instance is not suitable for concurrent processing since an instance has its own preallocated memory for temporary variables. A new instance must be created for each thread.
x86 optimized base field is generated with kilic/fp and for native go is generated with goff. Generated codes are slightly edited in both for further requirements.
Standart big.Int module is currently used for scalar field implementation. x86 optimized faster field implementation is planned to be added.
Point serialization is in line with zkcrypto library.
Simplified SWU method and try and increment method are available for both G1 and G2.
on 3.1 GHz i5
BenchmarkPairing 1034837 ns/op