digitalcredentials / vc

JavaScript implementation of W3C Verifiable Credentials standard
BSD 3-Clause "New" or "Revised" License
4 stars 4 forks source link

move signature log entries before expiry check #26

Closed jchartrand closed 6 days ago

jchartrand commented 1 week ago

Moves the two log entries for the signature check to before the expiry check (the expiry check happens in _checkCredential({credential, log, now})).

That way a successful signature check gets logged even if the expiry check fails. Otherwise, a failing expiry check throws an error which interrupts execution before it adds the log entries for the signature check.