QBE Examples

Example 1 Verifier requests VCs issued by did:tz:tz2NQkPq3FFA3zGAyG8kLcWatGbeXpHMu7yk:

{
  "type": "VerifiablePresentationRequest",
  "query": [
      {
          "type": "QueryByExample",
          "credentialQuery": [
              {
                  "example" : {
                      "trustedIssuer": [
                          {
                              "issuer" : "did:tz:tz2NQkPq3FFA3zGAyG8kLcWatGbeXpHMu7yk"
                          }
                      ]
                  }
              }
          ]
      }
  ],
  "challenge": "9d0927c1-08cb-11ec-a6fa-8d5c53eaebfb",
  "domain": "talao.co"
}

Example 2 Verifier requests a ResidentCard:

{
  "type": "VerifiablePresentationRequest",
  "query": [
      {
          "type": "QueryByExample",
          "credentialQuery": [
              {
                  "example" : {
                      "type" : "ResidentCard"
                  }
              }
          ]
      }
  ],
  "challenge": "9d0927c1-08cb-11ec-a6fa-8d5c53eaebfb",
  "domain": "talao.co"
}

Example 3 Verifier requests a ResidentCard signed by a specific issuer :

{
  "type": "VerifiablePresentationRequest",
  "query": [
      {
          "type": "QueryByExample",
          "credentialQuery": [
              {
                  "example" : {
                      "type" : "ResidentCard",
                       "trustedIssuer": [
                          {
                              "issuer" : "did:tz:tz2NQkPq3FFA3zGAyG8kLcWatGbeXpHMu7yk"
                          }
                      ]
                  }
              }
          ]
      }
  ],
  "challenge": "9d0927c1-08cb-11ec-a6fa-8d5c53eaebfb",
  "domain": "talao.co"
}

Example 4 Verifier attaches messages for user but no credential criters :

See https://talao.co/sandbox/presentationRequest for simulation and testing.

Last updated