spruceid / ssi

Core library for decentralized identity.
https://spruceid.dev
Apache License 2.0
187 stars 59 forks source link

The "nbf" field in JWT VCs contains a milliseconds part that will lead to interopt issues with JSON-LD. Same may be true for "iat" and "exp" fields. #486

Open krhoda opened 1 year ago

krhoda commented 1 year ago

As brought up by @awoie noticing the issue in a downstream lib (Rebase), the "nbf", "iat", and "exp" fields in SSI produced JWT VCs need to be an epoch time in seconds, but currently contain a milliseconds part. If I understand correctly, this will lead to issues with JSON-LD inter-opt.

If I do not understand correctly, feel free to close this issue!