PR feedback
parent
83ea71de24
commit
7a8e1309fb
@ -1,10 +1,15 @@
|
|||||||
package network.loki.messenger.libsession_util.util
|
package network.loki.messenger.libsession_util.util
|
||||||
|
|
||||||
object BlindKeyAPI {
|
object BlindKeyAPI {
|
||||||
init {
|
private val loadLibrary by lazy {
|
||||||
System.loadLibrary("session_util")
|
System.loadLibrary("session_util")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
// Ensure the library is loaded at initialization
|
||||||
|
loadLibrary
|
||||||
|
}
|
||||||
|
|
||||||
external fun blindVersionKeyPair(ed25519SecretKey: ByteArray): KeyPair
|
external fun blindVersionKeyPair(ed25519SecretKey: ByteArray): KeyPair
|
||||||
external fun blindVersionSign(ed25519SecretKey: ByteArray, timestamp: Long): ByteArray
|
external fun blindVersionSign(ed25519SecretKey: ByteArray, timestamp: Long): ByteArray
|
||||||
}
|
}
|
Loading…
Reference in New Issue