aries / net.globalid.aries.utils / RxCrypto

RxCrypto

object RxCrypto

Types

KeyInformation

Represents the key information JSON from Crypto.createKey.

data class KeyInformation

Functions

createKey

An RX wrapper for Crypto.createKey.

fun createKey(wallet: Wallet, keyInformation: KeyInformation? = null): Single<String>

cryptoSign

An RX wrapper for Crypto.cryptoSign.

fun cryptoSign(wallet: Wallet, signerVerKey: String, data: ByteArray): Single<ByteArray>

cryptoVerify

An RX wrapper for Crypto.cryptoVerify.

fun cryptoVerify(signerVerKey: String, message: ByteArray, signature: ByteArray): Single<Boolean>