bcgov / BC-Wallet-Demo

Demo of Verifiable Credentials Using the BC Wallet
https://digital.gov.bc.ca/digital-trust/showcase
Apache License 2.0
7 stars 13 forks source link

connection-less proof request not matching vc-authn #117

Closed cvarjao closed 3 months ago

cvarjao commented 1 year ago

from vc-authn:

{
  "name": "accredited-lawyer",
  "names": null,
  "version": "1.5.1",
  "nonce": "1006490795335943171980546",
  "requested_attributes": {
    "b26779f1-7849-4593-84ee-43bcaa2b50fd": {
      "names": [
        "PPID",
        "Given Name",
        "Surname",
        "Member Status",
        "Member Status Code"
      ],
      "restrictions": [
        {
          "schema_name": "Member Card",
          "schema_version": "1.5.1",
          "issuer_did": "4xE68b6S5VRFrKMMG1U95M"
        }
      ]
    }
  },
  "requested_predicates": {},
  "non_revoked": { "from": 0, "to": 1668017566 }
}

from the showcase:

{
  "name": "Court Services Request",
  "version": "Court Services Request",
  "nonce": "1033408721763614909419986",
  "requested_attributes": {
    "Member Card": {
      "restrictions": [{ "schema_name": "Member Card" }],
      "names": ["Member Status"]
    }
  },
  "requested_predicates": {}
}

Particularly the non_revoked settings needs to to match