Skip to content

Commit

Permalink
Merge pull request #284 from Sphereon-Opensource/fix/cvVerifyCredenti…
Browse files Browse the repository at this point in the history
…al-hasher

fix: pass hasher to cvVerifySchema
  • Loading branch information
sanderPostma authored Nov 26, 2024
2 parents d34bfbe + a12b845 commit 610d99e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ export class CredentialValidation implements IAgentPlugin {
private async cvVerifyCredential(args: VerifyCredentialArgs, context: RequiredContext): Promise<VerificationResult> {
const { credential, hasher, policies } = args
// defaulting the schema validation to when_present
const schemaResult = await this.cvVerifySchema({ credential, validationPolicy: policies?.schemaValidation ?? SchemaValidation.WHEN_PRESENT })
const schemaResult = await this.cvVerifySchema({
credential,
validationPolicy: policies?.schemaValidation ?? SchemaValidation.WHEN_PRESENT,
hasher,
})
if (!schemaResult.result) {
return schemaResult
}
Expand Down

0 comments on commit 610d99e

Please # to comment.