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

Proof requests without the "is_holder" constraint conclude in invalid proof validation #1486

Closed
acuderman opened this issue Nov 10, 2021 · 4 comments · Fixed by #1493
Closed
Assignees

Comments

@acuderman
Copy link
Contributor

acuderman commented Nov 10, 2021

When the proof request doesn't include the is_holder constraint, the verifier responds with verified: false, but It should respond with true. The same thing happens if the directive is "preferred" instead of "required".

Reproduction steps:

./run_demo faber --did-exchange --cred-type json-ld --wallet-type askar
./run_demo alice --wallet-type askar
  • Issue credential and send proof request
  • Observe that the Faber agent logs Proof = False
@shaangill025
Copy link
Contributor

@acuderman Can you test the requested updates [in PR #1493]?

@acuderman
Copy link
Contributor Author

@shaangill025 Thanks for the update. It works now if the holder sets holder_did when creating the credential request, but doesn't otherwise.

Reproduction steps:

  • Remove is_holder constraint constraint
  • Replace this line with data = {}
  • Run demo agents and go through the flow
  • Faber agent logs Proof = False while It should be true

@shaangill025
Copy link
Contributor

Thanks for the update. It works now if the holder sets holder_did when creating the credential request, but doesn't otherwise.

This is expected, if there is no holder_did set or $.credentialSubject.id for the credential, then the presentation is not signed as it will not be possible to verify this.

If you would still like to sign such a presentation then you will have to specify the signing DID in the request body (example below) for /present-proof-2.0/records/{pres_ex_id}/send-presentation endpoint.

"dif": {
    "issuer_id": "string"
}

@acuderman
Copy link
Contributor Author

Okay, thanks for the explanation. In this case, looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants