keria icon indicating copy to clipboard operation
keria copied to clipboard

Operation for credential from a source credential that is not issued to the issuer never resolves

Open lenkan opened this issue 2 years ago • 0 comments

See reproduction here: https://github.com/lenkan/signify-ts/pull/5

Let say you have the following AIDs

  • issuer
  • holder1
  • holder2

Then perform the following steps

  1. The issuer issues credential A to holder1.
  2. The issuer issues credential B chained from A to holder2.

The current behaviour by keria is to accept the HTTP call to issue the credential B, but the credential operation never resolves. I see multiple possible fixes:

  • If the input is invalid, I expect keria to do some input validation and respond with HTTP 4xx.
  • If the input is invalid, but cannot be confirmed directly, I expect the operation to fail and provide information about the failure when I poll the operations endpoint.
  • If the input is valid, I expect keria to create the credential and store it in the agent of the issuer.

lenkan avatar Dec 19 '23 14:12 lenkan