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

Test-schema #712

Open
t4trust opened this issue Jan 27, 2025 · 2 comments
Open

Test-schema #712

t4trust opened this issue Jan 27, 2025 · 2 comments
Labels
question Further information is requested

Comments

@t4trust
Copy link

t4trust commented Jan 27, 2025

Image

curl -X 'POST'
'http://localhost:5000/ver_configs/'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
"ver_config_id": "test-proof",
"subject_identifier": "",
"generate_consistent_identifier": true,
"proof_request": {
"name": "Test Proof-Request",
"version": "1.0",
"requested_attributes": [

  {
    "names": ["attr1", "attr2", "attr3"],
    "restrictions": [
      {
          "schema_name": "test-schema"
      }
    ]
  }
],
"requested_predicates": []

}
}'

@esune
Copy link
Member

esune commented Jan 27, 2025

It looks like you don't have a credential in your wallet that satisfies the restrictions in the proof-request, so you can't respond to it.

You should issue/get issued a credential to your wallet, ensure the proof-request configuration is set-up correctly to request it and try again.

@esune esune added the question Further information is requested label Jan 27, 2025
@t4trust
Copy link
Author

t4trust commented Jan 30, 2025

Thanks @esune

The configuration was executed as per the steps mentioned in the docs.
The configuration is looking for "name": "Test Proof-Request", we cannot issue this in BC wallet

I think "schema_name": "test-schema" should be Person schema

Person credential attributes should be used instead of "names": ["attr1", "attr2", "attr3"],

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

No branches or pull requests

2 participants