All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.eqoty.secretk.utils.EncryptionUtils.kt Maven / Gradle / Ivy

Go to download

A Kotlin multiplatform REST client utilizing secret network's gRPC gateway endpoints.

There is a newer version: 6.4.1-rc
Show newest version
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