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.
Hashing to curve implementations for both G1 and G2 follows _XMD:SHA-256_SSWU_RO_
and _XMD:SHA-256_SSWU_NU_
suites as defined in v7
of irtf hash to curve draft.
on 2.3 GHz i7
BenchmarkPairing 882553 ns/op