Skip to content

Draft: Updates DIA to use new Jargon strategy to keep Party as credentialSubject

Follows !560 (closed) , this PR has the updates of Jargon for the Digital Identity Anchor, switching to the credentialSubject having the id of the actual subject (the Party).

The actual Jargon changes to generate this was:

  • Add RegisteredIdentity.party as an aggregate all untp.Party properties, replacing Party fields which had been copied in.
  • sets RegisteredIdentity's own @id to untp:Party so that it masquerades as the Party (with extra relationships).

This allows us to have a separate object defined in Jargon, RegisteredIdentity which has all the fields of Party as well as some extra relationships (registerType and registrationScopeList etc.) (benefits of a schema and sample data), while the expanded JSON-LD just sees an Party with extra relations/predicates, as is right for JSON-LD.

Tested this DIA for valid jsonld and schema with https://github.com/absoludity/jargon-untp-tester

Ref #540

I'm leaving this as draft until the preceding !560 (closed) lands, as I'll then need to rebase this and update the target branch to main.

Merge request reports

Loading