0

In a Self Sovereign Identity, when verifier sends a proof request to the holder of credential, how the verifier makes sure to use correct schema id that is related to the holder during the proof request to the holder?

Krupakar
  • 39
  • 5

1 Answers1

0

I get more in depth and I can now say that the verifier can ask for a particular "schema_id" in the proof request's restrictions:(from here)

{
  "name": "proof-schema1",
  "version": "1.0",
  "requested_attributes": [
    {
      "names": ["class", "grade"],
      "restrictions": [{"cred_def_id": "<cred-def-id>"}]
    }, 
    {
      "name": "phone_number"
    }
  ],
  "requested_predicates": [
    {
      "name": "rank",
      "p_type": "<=",
      "p_value": 10,
      "restrictions": [{"cred_def_id": "<cred-def-id>"}]
    }
  ],
  "cred_filter": [
    {
       "attr_name": "class",
       "attr_values": ["Math 100"]
       "exclude": true
    },
    {
       "attr_name": "class",
       "attr_values": ["Math *"]
    }
  ]
}
wegs3524
  • 77
  • 6
  • How the verifier know that a particular credential definition belongs to a prover or holder so that verifier can send a proof request? – Krupakar Apr 10 '21 at 03:37
  • The verifier doesn't know upfront if the holder/prover already holds the credential defined in the proof request – wegs3524 Apr 12 '21 at 13:04