blockchain-certificates / cert-schema Goto Github PK
View Code? Open in Web Editor NEWThis project forked from 1edtech/cert-schema
The schema for Blockcerts
License: MIT License
This project forked from 1edtech/cert-schema
The schema for Blockcerts
License: MIT License
Having an issuing parsing https://www.w3.org/2018/credentials/v1 to completeness.
Issuing seems to be around the @protected
field:
{
"@context": {
"@version": 1.1,
"@protected": true,
...
}
Throws an error related to context being wrong.
Temp workaround is by preloading the context without the protected field. It may either be a limitation with the python implementation of json ld, an out of date library, etc.
In the spec, type
should be an array of types mapping to the @context
values. The second type is optional as per the spec, but would be good practice: https://www.w3.org/TR/vc-data-model/#types.
Furthermore, after reporting an issue to VCJS, this answer highlights the potential need to use a second type:
While the second type might be optional in the spec (this could be an error) the second type is essentially required as it provides a JSON-LD term that should be found in one of the @context schema or vocabularies that in turn identifies your VC in the graph. Terms not found in a schema or vocabulary will throw in vc-js.
First, a quick fix: V2_1_SCHEMA_LOCAL_PATH points to v2.0, as shown here:
However, this doesn't seem to solve the whole problem. Certificates I tested still seem to pass v2.1 validation only to cause the blockcerts-verifier verification dialog (with the checkmark) to throw an error and not display at all.
Let me know if I'm overlooking something here since I'm not familiar with v2.1 (haven't seen it in cert-tools etc.) and am issuing using the usual v2 tools.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.