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

We need an ECR credential schema that can be issued by a Legal Entity #73

Open
rc-provenant opened this issue Jan 5, 2023 · 1 comment
Assignees

Comments

@rc-provenant
Copy link

There is only one ACDC schema in the vLEI repo for issuing an ECR credential: "legal-entity-engagement-context-role-vLEI-credential.json" with a SAID of "EEy9PkikFcANV1l7EHukCeXqrzT1hNZjGlUk7wuMO5jw"; it assumes that the ECR vLEI will be issued by a QVI and the Legal Entity has issued the QVI an ECR AUTH. The 'auth' property is required in the edges block.

We need a version of the schema that can be used when a Legal Entity wants to issue the ECR vLEI itself and no ECR AUTH is required.

@m00sey m00sey self-assigned this Jan 5, 2023
m00sey added a commit that referenced this issue Jan 6, 2023
@m00sey
Copy link
Member

m00sey commented Jan 6, 2023

The edges object does not require anything:

image

What it does say is it needs to contain one of:

  • a single said
  • an object containing an attribute "auth"
  • an object containing an attribute "le"

The auth value in the required array here:

"required": [
"d",
"auth"
]
},

is for the object contained within the e object. Likewise with the le object.
If the e object contains and object vs a string, then that object must either have a property named auth or le

So something like:

  "e": {
    "d": "EBDmgKOAEwnMGsofWg2m0l63J1awfJafqJyCzTnVkdSw",
    "auth": {
      "n": "Et2DOOu4ivLsjpv89vgv6auPntSLx4CvOhGUxMhxPS24",
      "s": "EH6ekLjSr8V32WyFbGe1zXjTzFs9PkTYmupJ9H65O14g",
      "o": "I2I"
    }
  },

is valid.

or

  "e": {
    "d": "EBDmgKOAEwnMGsofWg2m0l63J1awfJafqJyCzTnVkdSw",
    "le": {
      "n": "Et2DOOu4ivLsjpv89vgv6auPntSLx4CvOhGUxMhxPS24",
      "s": "ENPXp1vQzRF6JwIuS-mp2U8Uf1MoADoP_GqQ62VsDZWY"
    }
  },

is valid.

I've added tests for each of the valid formats here:
https://github.com/WebOfTrust/vLEI/pull/74/files

m00sey added a commit that referenced this issue Feb 1, 2023
* adds tests for #73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants