-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
Description
Parent PRD
What to build
Add Expires and Revoked fields to the VerificationMethod struct in the nuts-foundation/go-did library. These fields allow DID resolvers to annotate keys with temporal validity information (certificate expiry, revocation status), which key resolvers then use to determine if a key was valid at a given reference time (PSA 10.4.3).
Expires: optional timestamp indicating when the key expires (e.g., certificatenotAfter)Revoked: optional timestamp indicating when the key was revoked (e.g., CRL revocation date)
This aligns with the PSA spec's layered validation model where DID resolution enriches the DID document with key metadata, and key resolution uses that metadata to make time-based validity decisions.
Acceptance criteria
-
VerificationMethodstruct ingo-didhas anExpiresfield (optional timestamp) -
VerificationMethodstruct ingo-didhas aRevokedfield (optional timestamp) - Fields serialize/deserialize correctly in JSON
- Existing tests pass, no breaking changes to the
VerificationMethodAPI -
nuts-nodedependency ongo-didis updated to the new version
Blocked by
None — can start immediately.
User stories addressed
- User story 6: key validity checked at credential's issuance time
- User story 8: layered validation model (DID resolution → key resolution)
Reactions are currently unavailable