Created Provide native lib for libsignal (markdown)

AsamK 2020-12-15 23:03:42 +01:00
parent d1abd00c87
commit d5972fcaa2

@ -0,0 +1,6 @@
For the new v2 groups libsignal-service requires [libzkgroup](https://github.com/signalapp/zkgroup), a native (rust) library. The library needs to be compiled separately for each CPU architecture and operating system.
The `.dylib` for macOS and the `.so` for unix systems can be bundled in the root of the `zkgroup-java-*.jar` file (but only for one architecture at a time). Only if there is no bundled file will libsignal search the library path (`java.library.path`) for the `.dylib`/`.do`/`.dll` file.
The linux x86_64 version is bundled by default, for other systems, you need to remove the bundled lib from the jar file, download or compile the latest [libzkgroup](https://github.com/signalapp/zkgroup/releases) for your system and put it in the library path.
`zip -d lib/zkgroup-java-*.jar libzkgroup.so`