PolluxImpl

open class PolluxImpl(val apollo: Apollo, val castor: Castor, api: Api = ApiImpl(httpClient())) : Pollux(source)

Class representing the implementation of the Pollux interface.

Constructors

Link copied to clipboard
constructor(apollo: Apollo, castor: Castor, api: Api = ApiImpl(httpClient()))

Properties

Link copied to clipboard
Link copied to clipboard

An API object for interacting with the Castor system.

Functions

Link copied to clipboard
fun checkEncodedListRevoked(revocationRegistryJson: String, statusListIndex: Int): Boolean
Link copied to clipboard
open suspend override fun createAnoncredsPresentationSubmission(presentationDefinitionRequest: String, credential: Credential, linkSecret: String): String
Link copied to clipboard
open suspend override fun createJWTPresentationSubmission(presentationDefinitionRequest: String, credential: Credential, privateKey: PrivateKey): String
Link copied to clipboard
open suspend override fun createPresentationDefinitionRequest(type: CredentialType, presentationClaims: PresentationClaims, options: PresentationOptions): String
Link copied to clipboard

Converts a Credential object to a StorableCredential object of the specified CredentialType.

Link copied to clipboard

Extracts the credential format from the given array of attachment descriptors.

Link copied to clipboard
open suspend override fun extractEcPublicKeyFromVerificationMethod(coreProperty: DIDDocumentCoreProperty): Array<<Error class: unknown class>>
Link copied to clipboard
Link copied to clipboard
suspend fun getCredentialDefinition(id: String): CredentialDefinition

Retrieves the credential definition for the specified ID.

Link copied to clipboard
open suspend override fun getSchema(schemaId: String): Schema
Link copied to clipboard
open suspend override fun isCredentialRevoked(credential: Credential): Boolean
Link copied to clipboard
open suspend override fun parseCredential(jsonData: String, type: CredentialType, linkSecret: String?, credentialMetadata: CredentialRequestMetadata?): Credential

Parses the given JSON data into a verifiable credential of the specified type.

Link copied to clipboard

Parses a verifiable credential from the given data.

Link copied to clipboard
open suspend override fun processCredentialRequestAnoncreds(did: DID, offer: CredentialOffer, linkSecret: String, linkSecretName: String): Pair<CredentialRequest, CredentialRequestMetadata>

Processes a credential request for anonymous credentials.

Link copied to clipboard
open override fun processCredentialRequestJWT(subjectDID: DID, privateKey: PrivateKey, offerJson: JsonObject): String

Creates a verifiable presentation JSON Web Token (JWT) for the given subjectDID, privateKey, credential, and requestPresentationJson.

Link copied to clipboard
open override fun processCredentialRequestSDJWT(subjectDID: DID, privateKey: PrivateKey, offerJson: JsonObject): String

Creates a verifiable presentation JSON Web Token (JWT) for the given subjectDID, privateKey, credential, and requestPresentationJson.

Link copied to clipboard
open override fun restoreCredential(restorationIdentifier: String, credentialData: ByteArray, revoked: Boolean): Credential

Restores a credential using the provided restoration identifier and credential data.

Link copied to clipboard
open suspend override fun verifyPresentationSubmission(presentationSubmissionString: String, options: PresentationSubmissionOptions): Boolean
Link copied to clipboard
fun verifyStatusListIndexForEncodedList(encodedList: String, statusListIndex: Int): Boolean