ProofEngine

interface ProofEngine

Proof engine for W3C Verifiable Credential proof suites.

This is a Service Provider Interface (SPI) for TrustWeave proof suite implementations. It is intended for plugin authors who want to add support for new VC proof suites.

Handles proof suite-specific proof operations (generation, verification, presentation creation) for proof suites such as VC-LD, VC-JWT, and SD-JWT-VC.

SPI Stability Note: SPI interfaces may evolve more frequently than the core API; minor version bumps may include SPI changes. Check release notes when upgrading.

Normal SDK users should use org.trustweave.credential.CredentialService directly rather than implementing this interface.

Properties

Link copied to clipboard

Proof engine capabilities.

Link copied to clipboard
abstract val format: ProofSuiteId

Proof suite identifier.

Link copied to clipboard
abstract val formatName: String

Human-readable proof suite name.

Link copied to clipboard
abstract val formatVersion: String

Proof suite version supported.

Functions

Link copied to clipboard
open suspend fun close()

Cleanup proof engine resources.

Link copied to clipboard

Create a Verifiable Presentation from Verifiable Credentials (if supported).

Link copied to clipboard
open suspend fun initialize(config: ProofEngineConfig = ProofEngineConfig())

Initialize proof engine (called once on registration).

Link copied to clipboard
open fun isReady(): Boolean

Check if proof engine is ready.

Link copied to clipboard
abstract suspend fun issue(request: IssuanceRequest): VerifiableCredential

Issue a Verifiable Credential.

Link copied to clipboard
abstract suspend fun verify(credential: VerifiableCredential, options: VerificationOptions): VerificationResult

Verify a Verifiable Credential.