Git Product home page Git Product logo

cert-schema's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cert-schema's Issues

[V3 alpha] add Blockcerts to type value

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.

from digitalbazaar/vc#45 (comment)

v2.1 validation doesn't seem to be working correctly

First, a quick fix: V2_1_SCHEMA_LOCAL_PATH points to v2.0, as shown here:

V2_1_SCHEMA_LOCAL_PATH = '2.0/schema.json'

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.