verifyContract

open suspend override fun verifyContract(credentialId: String): Result<Boolean>

Verifies the contract bound to credentialId.

The credential is taken from the credentials this instance issued in bindContract or, failing that, from the configured ContractCredentialResolver. It is then verified with the credential service (proof, validity, status) and checked to actually bind the stored contract: subject ID, contract number, dates, parties, contract data, terms and execution model must match.

Return

success(true) when all checks pass, success(false) when the credential is invalid or does not match the stored contract, and a failure when verification cannot be performed (no credential service, unknown contract, or credential not obtainable).