Repository navigation
Test and qualify LE and QVI revocation withdrawal - #75
Merged
Merged
Conversation
A revoked LE or QVI credential revokes every association chained to it, so the Oracle can receive a burst of revoked events at once. These tests cover that burst: events queue in arrival order with selection kept per wallet, only the selected wallets are withdrawn, and the writer resumes after a restart. A revoked association that was never selected completes without a transaction. They also cover a withdrawal repeated after the first one landed, whether because a receipt was lost or because the registry was withdrawn from outside. The repeat has no second effect. A rejected claim stays rejected after the owner's withdrawal and only a new claim publishes. The tests need no production-code change.
The paired qualification now issues fresh associations for both wallets, confirms both mappings and a transfer, then revokes the shared LE credential with the Verifier fixture and presents that evidence. It requires both statuses `revoked` with an LE `revocationSource`, both endorsements `withdraw` and `completed`, both contract mappings empty, and a following transfer that moves no balance. The Verifier pin in `scripts/integration/dependencies.json` moves to the revision that provides `revoke-source` and `present-source`. The Comply pin is unchanged.
A revoked LE or QVI credential now arrives as an ordinary `revoked` status, so the guides say that the Verifier reports it that way and that the event carries no cause. They also state that a burst of such events queues serial withdrawals in arrival order, each its own transaction and nonce, so the writer needs funds for all of them. Two behaviours are written down: a revoked association that was not selected completes with no transaction, and a withdrawn mapping is not replaced automatically, so a claim has to be presented again as a new association. The qualification guide lists the new LE revocation step.
Main advanced the Verifier pin after this branch started. The pin here is a descendant of that commit and carries the fixture commands this branch's qualification needs, so it is kept.
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.
Draft. Depends on the EOA Verifier upstream-revocation stack, which provides
revoke-sourceandpresent-sourceand therevokedstatus for LE and QVI revocation. The head of that stack is GLEIF-IT/eoa-verifier#50 (stacked on #49 and #48). Please merge this after that stack.What and why
When an LE or QVI credential is revoked, the Verifier now revokes every association chained to it, so the Oracle can receive a burst of ordinary
revokedevents at once. This PR adds tests for that, a qualification step, and documentation. There is no production-code change, and vlei-comply needs no change.revokedwith an LErevocationSource, both endorsementswithdraw/completed, both mappings empty and a following transfer that moves no balance. The Verifier pin inscripts/integration/dependencies.jsonmoves to the stack head,7ea246aa27049075ec615b2dd1d409a7eb6a9c8b. The Comply pin is unchanged.Verification
env qualifywith the Verifier source checked out at that commit and the pinned Comply checkout): 1 passed.Reviewer notes
revokedstatus. The cause field is deferred in Include the revocation cause in the revoked webhook event eoa-verifier#47.