Revoke attestation authorization flow#215
Merged
Merged
Conversation
|
@Birdmannn Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Kaylahray
requested changes
Jun 1, 2026
Kaylahray
left a comment
Contributor
There was a problem hiding this comment.
Hello @Birdmannn Please resolve conflicts n workflow
Contributor
|
Hi @Birdmannn I merged your first PR and now this has conflict |
Kaylahray
approved these changes
Jun 6, 2026
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.
Attestation Revoke Flow - Implementation Summary
What Was Done
Implemented the attestation revoke flow with issuer-or-admin authorization and event publishing.
Implementation Details
Method Signature
Key Features
Caller Authentication
caller.require_auth()before any operationsAuthorization Check
NotAuthorizederror for unauthorized callersRevocation Logic
AlreadyRevokederror)revoked = trueon the attestationEvent Publishing
AttestationRevokedEventwith:attestation_id: The ID of the revoked attestationrevoked_by: The address that performed the revocationEvent Definition
Tests (13 total)
Existing Tests (12)
New Test Added (1)
test_revoke_attestation_publishes_eventAttestationRevokedEventis published when an attestation is revokedRevocation Tests Coverage
test_revoke_attestation_by_issuer- Issuer can revoke their own attestationstest_revoke_attestation_by_admin- Admin can revoke any attestationtest_revoke_attestation_unauthorized- Unauthorized callers receiveNotAuthorizedtest_revoke_already_revoked_attestation- Cannot revoke already revoked attestationstest_revoke_attestation_publishes_event- Event is published on revocationTest Results
cargo test -p quid-reputationResult: ✅ 13 tests passed
Acceptance Criteria
NotAuthorizederrorAttestationRevokedEventpublishedCode Flow
Closes #198