bug: after revoking 1 credential all subsequently issued are in a revoked state
Problem to solve
TL;DR
Revoking a second credential in a list results in errors.
Let us assume we have 3 credentials
- credential1: issued
- credential2: issued
- credential3: not yet issued
If all credentials are issued before a revocation event occurs, then everything works as expected.\
Before revocation: both credential1 and credential2 are in valid:true state. If we revoke credential1 it becomes in valid:false state, while credential2 remains in valid:true state.
However After revocation has happened on a single credential, we issue credential3 (as revocable) and it is automatically in valid:false state.
Attempting to revoke it results in a credo-ts error that states:
\"reason\":\"unknownError: Request failed: client request invalid: InvalidClientRequest('7wV7McGyL5MnfpDF321NS3', 1711451274520010346, 'Got equal accum and prev_accum but issued and revoked indices are not empty'
Update
Attempting to revoke a second credential resulted in the following credo-ts error:
\"reason\":\"unknownError: Request failed: client request invalid: InvalidClientRequest('7wV7McGyL5MnfpDF321NS3', 1711451997242719430, 'Issued indices from txn: {0, 2, 3} are not present in the current revoked list from state: [1]'
Proposal
Edited by Boyan Tsolov