Currently, there is a limitation to the library that all methods are static in the library. This means that if the class is used concurrently with two different trusted setups it won't work.
The JNI binding could be changed to store a trusted setup per jobject. C doesn't have a map data structure, so some sort of custom map could be created (binary tree could be a solution)
Currently, there is a limitation to the library that all methods are static in the library. This means that if the class is used concurrently with two different trusted setups it won't work.
The JNI binding could be changed to store a trusted setup per
jobject. C doesn't have a map data structure, so some sort of custom map could be created (binary tree could be a solution)