digitalcredentials / vc

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

feat: verify first, check semantics after and remove issuanceDate check #9

Closed lleifermann closed 2 years ago

lleifermann commented 2 years ago

This PR proposes the some changes as discussed in: https://github.com/digitalcredentials/vc/issues/7

IMHO we should also remove the check (if not even all of them) if a credential is expired when issuing it. For some e2e test scenarios one may choose to issue an expired credential.

I am still a bit confused. Initally my PR was larger, with more modifications to error handling as well. But it seems jsigs already does alot of sanity and semantic checks on the credential (checking if a context is there for example). Is there a reason we do them again here?

lleifermann commented 2 years ago

Actually - I think it makes sense to separate the checks for issuance and verification. As for verification a check on the issuanceDate may be useful.

lleifermann commented 2 years ago

I also highly recommend adding github actions to this repo. I ran all the tests locally but that seems like such a thing of the past 😄

dmitrizagidulin commented 2 years ago

I also highly recommend adding github actions to this repo. I ran all the tests locally but that seems like such a thing of the past smile

Yeah, not sure why there weren't on -- enabled now.

lleifermann commented 2 years ago

@dmitrizagidulin Any update on this?

dmitrizagidulin commented 2 years ago

@lleifermann - published as @digitalcredentials/vc v5.0.0