digitalcredentials / learner-credential-wallet

Learner Credential Wallet is a cross-platform iOS and Android mobile application for storing and sharing digital learner credentials.
https://lcw.app
MIT License
57 stars 29 forks source link

when verifying a VC, show a message if the top level id on the VC isn't a uri #639

Open jchartrand opened 1 month ago

jchartrand commented 1 month ago

Is your feature request related to a problem? Please describe. After we update to the latest VC2 libs, VCs that don't have a uri value for their top level id will no longer verify.

Describe the solution you'd like Add a check on the id and if it isn't a uri then display a message:

"The id of a verifiable credential must be a URI. Your credential's id is not a URI and may therefore have been issued as part of an early test pilot program. Please ask your issuer for a replacement if needed."

Describe alternatives you've considered Could try to provide backward compatibility by modifying or working around the VC libs , but given that credentials issued thus far are for pilots, the cost of maintaining that backward compatibility is too high.

Additional Context Same issue applies to VerifierPlus: https://github.com/digitalcredentials/web-verifier-plus/issues/134