aries / net.globalid.aries.utils / RxCache

RxCache

object RxCache

Functions

getCredentialDefinitionJson

Gets credential definition json data for specified credentialDefinitionId. If data is present inside of cache, cached data is returned. Otherwise data is fetched from the ledger and stored inside of cache for future use.

fun getCredentialDefinitionJson(pool: Pool, wallet: Wallet, credentialDefinitionId: String, optionsJson: String = "{}"): Single<String>

getSchemaJson

Gets schema json data for specified schema id. If data is present inside of cache, cached data is returned. Otherwise data is fetched from the ledger and stored inside of cache for future use. Read more here

fun getSchemaJson(pool: Pool, wallet: Wallet, schemaId: String, optionsJson: String = "{}"): Single<String>