Skip to content
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

Fix issue with requested to revoke before registry creation #2995

Merged
merged 1 commit into from
May 28, 2024

Conversation

jamshale
Copy link
Contributor

@jamshale jamshale commented May 27, 2024

This fixes #2962 by fetching the registry list start time and then using it for the revoke_to value and recalculating the delta, when the accum_to value is missing from the ledger response. This means that if the presentation request has a revoke_to value before the registry was created that the holder will use the creation time to calculate the delta.

There is some conversation about the desired behaviour in the ticket. I'm not certain this is the way it should be fixed, but my limited understand and testing appears like it is valid.

Signed-off-by: jamshale <jamiehalebc@gmail.com>
Copy link

sonarcloud bot commented May 27, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@swcurran
Copy link
Member

@cvarjao — this might be the source of the issue with some Lawyers being unable to produce a valid revocation proof. If this same issue is happening in Credo, the result would be the “accum_to” being “NONE”, which IIRC was the error that was coming up. Further, if the lawyer got a new credential, their existing credential would be revoked, triggering an update of the RevReg, which might in turn would make the problem go away.

@jamshale jamshale marked this pull request as ready for review May 28, 2024 17:49
@jamshale jamshale requested review from ianco and dbluhm May 28, 2024 17:49
@swcurran swcurran merged commit 7fbd329 into hyperledger:main May 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants