ContractCredentialResolver

Looks up the verifiable credential that was issued for a contract.

DefaultSmartContractService remembers the credentials it issued itself through SmartContractService.bindContract; a resolver is only needed to verify contracts whose credential was issued elsewhere (or by a previous process). Return null when the credential is unknown; DefaultSmartContractService.verifyContract then fails rather than reporting the contract as verified.

Functions

Link copied to clipboard
abstract suspend fun resolve(credentialId: String): VerifiableCredential?