-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement document expired verifier #160
Comments
Hi, and thanks for your proposal. On my side I'm agreeable to have something in open-attestation to support date validity. Some insights:
|
thanks for your response @Nebulis perhaps this issue will be addressed by v3 anyway? I see that the v3.0 schema includes the validUntil/expirationDate fields. what is the planned approach to handling credential expiry for v3? i.e. is it the intent that |
We will address the schema indeed, as for the verifier our opinion remains:
Let's leave the choice to verifiers. But definitely can create a verification method from oa-verify to help verifiers :) |
This is a feature proposal
Context
I'm raising this proposal under the assumption that, document expiry is general enough to qualify as something that might better be implemented at the OA layer, and that here (rather than as a document specific extension of this library) is a sensible place to do this.
Proposal
Implement a 'document_expired' verifier which returns a verifier status of INVALID for documents containing a payload with an expiry date in the past
Problems
How do we allow for the creation of a wrapped open attestation document containing a document expiry verifier fragment with an expiry date that does not diverge from an expiry date given by the raw payload?
let's say we have a document something like this:
and we want our wrapped document to contain a verifier fragment that allows the verifier to find and compare the
expiryDate
to current date to determine validity. How do we do that in a flexible way that does not impose limitations on the structure of raw documents?perhaps the document expiry verifier fragment could contain a date format and json path expression to the payload element that represents the document's expiry date?
e.g. the fragment could look something like:
the verifier could then look at the path and format values, extract from the payload and compare to, what?
which brings me to...
How do verifiers determine the current datetime?
there might be multiple acceptable options. maybe the fragment could contain a method which could allow the verifier to determine the current date however it sees fit, or it may specify some mechanism like:
🤷♂️
The text was updated successfully, but these errors were encountered: