commonMain.io.eqoty.secretk.utils.EncryptionUtils.kt Maven / Gradle / Ivy
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