Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

rsksmart/rif-credential-verifier

Repository files navigation

logo

rif-credential-verifier

Verifier credentials and presentations

npm Alerts Code Quality

Usage

The RIF Credential Verifier can verify and decode JWT presentations and credentials. This site can be used with the RIF Identity Manager to verify credential presentations.

To test it yourself, get an email credential from the RIF Email VC Issuer. After verfying your email address, the issuer will ask you to save it in your datavault. Next, navigate to the RIF Identity Manager and log in. Navigate to DataVault and scroll down to Credentials. Click 'download' and then 'present' to get a presentation JWT.

Don't want your own credential? Use one of the sample credentials.

deep linking

You can start the decoding process by appending ?jwt=[your JWT] to the URL. For example, this link here.

ethSign

The verifier supports credentials and presentations signed with ethSign, i.e. a wallet such as metamask. The default is the presentation is signed with ethSign and the credentials are not. However, the user can change these defaults when they decode.

Run Locally

Setup for this project is fairly simple.

yarn

Install project dependencies

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

yarn test

Runs the tests, displays coverage, and runs the linter. See below for more specific commands

yarn test:watch

Launches the test runner in the interactive watch mode.

yarn test:coverage

Runs the test coverage and saves the report in thecoverage folder.

yarn lint

Runs the linter and returns status.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

CI scripts

yarn test:ci

Runs the test coverage and saves the report in thereports folder. Uses maxWorkers=2 - CircleCI recommendation

yarn test:ci

Runs the linter and saves the report in thereports folder.

About

View and verify JWT Presentations and Credentials. In development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published