Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify issuer/key-id mismatch error (currently just 'issuer not recognized') #10

Open
dmitrizagidulin opened this issue Nov 4, 2022 · 8 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@dmitrizagidulin
Copy link
Member

dmitrizagidulin commented Nov 4, 2022

Note: This started as an issue on LCW, but was diagnosed to be upstream in this VC lib (see #10 (comment) )

Something is off with the remote registry code -- a VC with a DID that's in community-registry is showing as not appearing in the registry by LCW detail screen.
To reproduce:

  1. Load up latest main build, or Test Flight build 39.
  2. Click on deep link: dccrequest://request?issuer=issuer.example.com&vc_request_url=https://verify.dcconsortium.org/request/credential&challenge=ke12345678-0001&auth_type=bearer (though heads-up, you might run into issue Issuer auth 'code' overriding auth_type 'bearer' openwallet-foundation-labs/learner-credential-wallet#255 )
  3. Accept that VC. The VC should have an issuer DID of did:key:z6MktiSzqF9kqwdU8VkdBKx56EYzXfpgnNPUAGznpicNiWfn
  4. This DID appears in Community Registry https://digitalcredentials.github.io/community-registry/registry.json

Expected behavior: This VC should have green checkmark, DID should appear in registry.
Actual behavior: Wallet says it's not found in registry.

@sethduffin
Copy link

sethduffin commented Nov 4, 2022

@dmitrizagidulin I'll take a look at this. Thanks for proving repo steps!

@sethduffin
Copy link

@dmitrizagidulin Did you want me to look at this any further?

@bmuramatsu
Copy link
Collaborator

@sethduffin have you addressed this?

@sethduffin
Copy link

@bmuramatsu I believe this was follow up conversation in slack about the issue:

Nov 4, 2022 - @dmitrizagidulin

ah, wait, so I think I know what might be going on (with the community-registry).
so, one of the validation rules (that's not clearly spelled out, but it's there), is that the verificationMethod (key id) in the 'proof' has to match issuer.id (specifically, has to be authorized in the issuer's DID Document).

but in that test VC from the deep link, those two are mis-matched.

so what is likely happening, is that the issuer.id is indeed in the community-registry. But the validation is throwing a mismatch error, and it's showing up as 'issuer not recognized'

Happy to work on this further, just let me know!

@bmuramatsu
Copy link
Collaborator

bmuramatsu commented Dec 16, 2022 via email

@dmitrizagidulin
Copy link
Member Author

dmitrizagidulin commented Dec 16, 2022

@bmuramatsu right, ok, so, I think I've been keeping this issue open as a reminder to open a corresponding issue on our VC library. So I might as well just move this issue to that lib.
Update: issue transferred.

@dmitrizagidulin dmitrizagidulin transferred this issue from openwallet-foundation-labs/learner-credential-wallet Dec 16, 2022
@dmitrizagidulin dmitrizagidulin changed the title DID from community-registry not being recognized Clarify issuer/key-id mismatch error (currently just 'issuer not recognized') Dec 16, 2022
@kayaelle
Copy link
Member

@dmitrizagidulin - can this be closed?

@kayaelle kayaelle added question Further information is requested bug Something isn't working labels Apr 20, 2023
@dmitrizagidulin
Copy link
Member Author

@kayaelle - this is still live/relevant, let's keep it open

@kayaelle kayaelle moved this to Backlog in DCC Engineering Jul 18, 2023
@kayaelle kayaelle moved this from Backlog to Follow-up in DCC Engineering Sep 22, 2023
@kayaelle kayaelle moved this from Follow-up to Backlog in DCC Engineering Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
Status: Backlog
Development

No branches or pull requests

4 participants