aries / net.globalid.aries.utils / RxAnoncreds

RxAnoncreds

object RxAnoncreds

Types

CredentialRequest

Represents the result of the RxAnoncreds.proverCreateCredentialRequest. See Anoncreds.proverCreateCredentialReq for more details.

data class CredentialRequest

Functions

createMasterSecret

An RX wrapper for Anoncreds.proverCreateMasterSecret.

fun createMasterSecret(wallet: Wallet, masterSecretId: String? = null): Single<String>

createRevocationStateForCredential

Create revocation state for a credential that corresponds to a particular time.

fun createRevocationStateForCredential(blobStorageReader: BlobStorageReader, revocationRegistryDefinitionJson: String, revocationRegistryDeltaJson: String, epochTimestamp: Long, credentialRevocationId: String): Single<String>

proverCreateCredentialRequest

Creates a credential request in the prover role.

fun proverCreateCredentialRequest(wallet: Wallet, proverDid: String, credentialOffer: String, credentialDefinition: String, masterSecretId: String): Single<CredentialRequest>

proverCreateProof

Creates a proof according to the given proof request.

fun proverCreateProof(wallet: Wallet, proofRequest: String, requestedCredentials: String, masterSecretId: String, schemas: String, credentialDefinitions: String, revocationStates: String): Single<String>

proverDeleteCredential

Removes a credential with the given id from the wallet.

fun proverDeleteCredential(wallet: Wallet, credentialId: String): Completable

proverGetCredential

Gets the credential with the given ID from the wallet.

fun proverGetCredential(wallet: Wallet, credentialId: String): Single<CredentialInfo>

proverStoreCredential

Stores the credential in the wallet in the prover role.

fun proverStoreCredential(wallet: Wallet, credentialId: String?, credentialRequestMetadata: String, credential: String, credentialDefinition: String, revocationRegistryDefinition: String?): Single<String>