hyperledger-archives / aries-framework-dotnet

Aries Framework .NET for building multiplatform SSI services
https://wiki.hyperledger.org/display/aries
Apache License 2.0
84 stars 74 forks source link

Cannot SendRevocationRegistryEntryAsync #205

Closed vasile135 closed 2 years ago

vasile135 commented 2 years ago

Describe the bug "Ledger operation rejected" when call "_credentialService.RevokeCredentialAsync(agentContext, credentialRecord.Id)"

To Reproduce Steps to reproduce the behavior:

  1. Created credential definition for a schema (EnableRevocation = true).
  2. Ensured RevocationRegistryRecord and the tail file was created in "/tails" folder.
  3. Successfully issued a document. The receiver has accepted it and the credential status became "Issued"
  4. Called "_credentialService.RevokeCredentialAsync(agentContext, credentialRecord.Id) --> Ledger operation rejected.

Expected behavior Expected to successfully write the delta state on the ledger as all previous ledger operations passed.

Screenshots Credential record: image The revocRegistryDeltaJson: image

Desktop

Additional context The ledger rejects the SendRevocationRegistryEntryAsync action with the error message "Ledger operation rejected".

Thanks.

vasile135 commented 2 years ago

The problem was that the credential definition was created with Endpoint.DID, not with IssuerDid: image