Pollux
The Pollux
interface represents a set of operations for working with verifiable credentials.
Inheritors
Functions
Link copied to clipboard
abstract suspend fun createAnoncredsPresentationSubmission(presentationDefinitionRequest: String, credential: Credential, linkSecret: String): String
Link copied to clipboard
abstract suspend fun createJWTPresentationSubmission(presentationDefinitionRequest: String, credential: Credential, privateKey: PrivateKey): String
Link copied to clipboard
abstract suspend fun createPresentationDefinitionRequest(type: CredentialType, presentationClaims: PresentationClaims, options: PresentationOptions): String
Link copied to clipboard
abstract fun credentialToStorableCredential(type: CredentialType, credential: Credential): StorableCredential
Converts a Credential object to a StorableCredential object of the specified CredentialType.
Link copied to clipboard
abstract fun extractCredentialFormatFromMessage(formats: Array<AttachmentDescriptor>): CredentialType
Extracts the credential format from the given array of attachment descriptors.
Link copied to clipboard
abstract suspend fun extractEcPublicKeyFromVerificationMethod(coreProperty: DIDDocumentCoreProperty): Array<<Error class: unknown class>>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun parseCredential(jsonData: String, type: CredentialType, linkSecret: String? = null, credentialMetadata: CredentialRequestMetadata?): Credential
Parses the given JSON data into a verifiable credential of the specified type.
Link copied to clipboard
abstract suspend fun processCredentialRequestAnoncreds(did: DID, offer: CredentialOffer, linkSecret: String, linkSecretName: String): Pair<CredentialRequest, CredentialRequestMetadata>
Processes a credential request for anonymous credentials.
Link copied to clipboard
abstract fun processCredentialRequestJWT(subjectDID: DID, privateKey: PrivateKey, offerJson: JsonObject): String
Processes the JWT credential request and returns a string representation of the processed result.
Link copied to clipboard
abstract fun processCredentialRequestSDJWT(subjectDID: DID, privateKey: PrivateKey, offerJson: JsonObject): String
Processes the SDJWT credential request and returns a string representation of the processed result.
Link copied to clipboard
abstract fun restoreCredential(restorationIdentifier: String, credentialData: ByteArray, revoked: Boolean): Credential
Restores a credential using the provided restoration identifier and credential data.
Link copied to clipboard
abstract suspend fun verifyPresentationSubmission(presentationSubmissionString: String, options: PresentationSubmissionOptions): Boolean