Skip to content

Update generate JSON files script to differentiate identifiers by type -- schema and credDef, fix some identifiers and URLs#169

Merged
esune merged 1 commit intobcgov:mainfrom
swcurran:type
Sep 19, 2025
Merged

Update generate JSON files script to differentiate identifiers by type -- schema and credDef, fix some identifiers and URLs#169
esune merged 1 commit intobcgov:mainfrom
swcurran:type

Conversation

@swcurran
Copy link
Contributor

The script that generates the JSON file used by OCA File has a type attribute that was being set to schema for all identifiers. The script has been updated to search the content of the URL associated with the identifier to determine if it is actually a CLAIM_DEF/CredDef, and if so, sets the type properly to "credDef". The script was been written so that it will (should?) work with did:webvh AnonCreds files, once those are available.

In doing this, I found a number of URLs to files that were incorrect:

  • Sovrin Staging Net identifiers that hadn't been updated.
  • BCovrin Test identifiers that used the old IndyScan URLs
  • CANdy identifiers that had a URL to the root of the IndyScan, not to the identifier transactions.

All of these are now fixed -- as part of this PR.

There are also new copies of the latest JSON files -- but these are not the ones that should be used. The GitHub Pages JSON files are correct. We could .gitignore the ones in the repo, and remove them. But that's another PR.

…e -- schema and credDef, fix some identifiers and URLs

Signed-off-by: Stephen Curran <swcurran@gmail.com>
@swcurran
Copy link
Contributor Author

@krobinsonca @esune -- when you get a chance.

@esune esune merged commit 845c3d4 into bcgov:main Sep 19, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants