commonMain.io.eqoty.secretk.utils.EncryptionUtils.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-jvm Show documentation
Show all versions of client-jvm Show documentation
A Kotlin multiplatform REST client utilizing secret network's gRPC gateway endpoints.
package io.eqoty.secretk.utils
import kotlinx.coroutines.Deferred
import kotlinx.serialization.json.JsonObject
interface EncryptionUtils {
suspend fun getPubkey(): Deferred
suspend fun decrypt(ciphertext: UByteArray, nonce: UByteArray): UByteArray
suspend fun encrypt(contractCodeHash: String, message: JsonObject): UByteArray
suspend fun getTxEncryptionKey(nonce: UByteArray): UByteArray
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy