-
Notifications
You must be signed in to change notification settings - Fork 10
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
Remove legacy use of GeneralizedTime #249
Comments
When did this change came to be? This is too short for 2 reasons:\
|
Regarding point 1. the thought was that if we could make the design change relatively easy, perhaps without needing support for the old and new ASN format at the same time. Regarding point 2. the thought was to apply this to all attestations, since the format is already modified so much that it is not x509 compliant. Hence we thought it would not be necessary to add redundant |
Current Issue related to remove unused fields notBefore and notAfter , not related to the attestation TTL
currently identifier attestations reusable, its OK |
@weiwu-zhang , @jot2re , what do we decide? remove redundant notBefore and notAfter as we dont use them? |
attestation.id is using Personally, I don't think we have to remove them, because of backward compatibility. Even if we remove them, but the old attestations issued still have to be supported: the newest email attestation has 30 days time limit. So, only schema can be changed and the validate code cannot be changed too. Even more, the old attestations are saved on chain, for some reasons, it still might be used or decoded. So, the old code still can not be removed. At the same time, removing these fields can not bring too many advantages. Another example is API docs not changing those interfaces including typo aren't uncommon. If we insist on removing, I suggest making a new version of schema, not changing on the same structure. |
If we remove them now, I think we need to first change the default issuance structure to issuer attestation that only use notBeforeInt and notAfterInt. Then after that is deployed, we wait a month and finally remove the |
Yes, I agree with you @oleggrib on both points. I think it makes sense to make the default behaviour to just include notBeforeInt and notAfterInt. And then after a month we can completely remove the need for the code to understand |
The "annoyingly" encoded
notBefore
andnotAfter
times in attestations using GeneralizedTime is no longer needed, since we now usenotBeforeInt
andnotAfterInt
to store times in a away that is easy for smart contracts to use.Furthermore since we now only issue attestations valid for an hour, there is no need to keep backward compatibility.
(Although we once issued unlimited attestations, but I think it is fair to deprecated these, if any still exist.)
This issues should only be fixed once we get a proper CI/CD setup between attestation.id, authenticator.js, attestation.jar and the smart contracts since it is not a high priority issue.
See PR #239 and this discussion .
The text was updated successfully, but these errors were encountered: