diff --git a/CHANGELOG.md b/CHANGELOG.md index b84feacb..4bf01975 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # @digitalcredentials/vc ChangeLog +## 9.0.0 - 2024-09-30 + +### Fixed +- add signature checks to the log before running other verification checks whose errors might prevent that logging + ## 9.0.0 - 2024-09-17 ### Changed diff --git a/lib/index.js b/lib/index.js index 8fd12832..b0996cef 100644 --- a/lib/index.js +++ b/lib/index.js @@ -352,6 +352,9 @@ async function _verifyCredential(options = {}) { } } + log.push({id: 'valid_signature', valid: true}); + log.push({id: 'issuer_did_resolves', valid: true}); + // run common credential checks (add check results to log) _checkCredential({credential, log, now}); @@ -362,9 +365,6 @@ async function _verifyCredential(options = {}) { '"credentialStatus".'); } - log.push({id: 'valid_signature', valid: true}); - log.push({id: 'issuer_did_resolves', valid: true}); - if(credential.credentialStatus) { await addStatusInfoToLog({options, result, log}); } diff --git a/package.json b/package.json index 5905c538..8b69d1aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@digitalcredentials/vc", - "version": "9.0.0", + "version": "9.0.1", "description": "Verifiable Credentials JavaScript library.", "homepage": "https://github.com/digitalcredentials/vc", "repository": {