feat: Implement credential revocation logic#110
Merged
Josie123-Dev merged 2 commits intoJun 21, 2026
Merged
Conversation
- Add revocation fields to VerificationRecord (revoked, revoked_at, revocation_reason) - Implement revoke_verification() function with reason parameter - Add is_verification_revoked() to check revocation status - Add get_revocation_status() to retrieve full revocation details - Implement revocation list maintenance with get_revoked_verifications() - Add is_verification_valid() helper to check both approval and revocation - Emit VerificationRevoked events when credentials are revoked - Add comprehensive test coverage for all revocation scenarios - Include error handling tests for nonexistent verifications Closes GuardZero144#91
|
@meshackyaro is attempting to deploy a commit to the Josie's projects Team on Vercel. A member of the Team first needs to authorize it. |
Replace revoked_at >= 0 assertion with silent assignment to avoid clippy::absurd_extreme_comparisons warning for u64 type
Member
|
Thank you @meshackyaro for you contribution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR implements comprehensive credential revocation logic for the verification system.
Changes
Testing
All 73 tests pass successfully, including:
Acceptance Criteria
Closes #91