feknall / Hyperledger-FL

4 stars 0 forks source link

Agent C must verify credential of agent A that is issued by agent B #6

Closed feknall closed 2 years ago

feknall commented 2 years ago

Imagine that a verifier tries to verify whether a credential is valid or not. Therefore, we have a Verifier and a Holder, but no Issuer.

  1. Verifier:

    POST /present-proof/send-request
    {
    "comment":"string",
    "proof_request":{
      "requested_predicates":{
    
      },
      "requested_attributes":{
         "additionalProp1":{
            "name":"sin"
         }
      },
      "version":"1.0",
      "name":"Proof request"
    },
    "connection_id":"d491aa70-4f2c-40df-aa32-2211484d735a"
    }
  2. Holder:

    POST /present-proof/records/{pres_ex_id}/send-presentation
    {
    "requested_predicates":{
    
    },
    "self_attested_attributes":{
    
    },
    "requested_attributes":{
      "additionalProp1":{
         "revealed":true,
         "cred_id":"cred-id-in-wallet"
      }
    }
    }
  3. Verifier:

    POST /present-proof/records/{pres_ex_id}/verify-presentation
    {}