2.3.8 • Published 6 months ago

@growr/vc-json-schemas-parser v2.3.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago
npm i did-jwt @rsksmart/vc-json-schemas-parser

This library can be used to parse credentials that are compatible with Verifiable Credentials JSON Schemas

Quick start

To parse a credential that complies with a given schema

import { decodeJWT } from 'did-jwt'
import { parseVerifiableCredential } from '@rsksmart/vc-json-schemas-parser'

const emailVC = '...'
const decodedEmailVC = decodeJWT(emailVC)
const parsedEmailVC = parseVerifiableCredential('Email', decodedEmailVC.payload)
/*
{ Email:
       { text: 'ilan@iovlabs.org', prefix: { en: 'Email address' } } }
*/

Supports:

  • Email
  • Phone

Run tests

npm test

Build

npm run build

Contribute

2.3.8

6 months ago

2.3.7

11 months ago

2.3.4

1 year ago

2.3.3

1 year ago

2.3.6

12 months ago

2.3.5

1 year ago

2.3.2

1 year ago

2.3.0

2 years ago

2.2.0

2 years ago

2.3.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago