Skip to content

Fetch the closest resource before the timestamp rather than closest before or after in the cheqd resolved #2257

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

Open
TimoGlastra opened this issue Apr 17, 2025 · 2 comments

Comments

@TimoGlastra
Copy link
Contributor

In the resolver we currently find the closes resource before or after a timestamp. But for AnonCreds revocation status list it's important we pick the closest before the given timestamp, as that's when the status list was active.

cc @DaevMithran

@DaevMithran
Copy link
Contributor

DaevMithran commented May 7, 2025

@TimoGlastra what should be the result when the timestamp provided is earlier than the statuslist creation date? Should we throw an error?

@TimoGlastra
Copy link
Contributor Author

Yes I think an error should be thrown in that case, do you see other options that would work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants