New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sunbird-rc/verification-sdk

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sunbird-rc/verification-sdk

An SDK to verify Sunbird generated Verifiable Credentials

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
73
increased by356.25%
Maintainers
0
Weekly downloads
 
Created
Source

Verification SDK for Sunbird-RC generated credentials

Install

This can be used to verify JSON-LD based W3C compliant Verifiable Credentials as described in the Spec. It uses tooling from Digital Bazaar to enable verification of credentials. This supports the following Key Types:

  • RSA Verification Key 2018
  • Ed25519 Verification Key 2018
  • Ed25519 Verification Key 2020
npm install @sunbird-rc/verification-sdk

Usage

As part of this SDK, two main functionalities exist.

  • Download Revocation List from API
  • Verify the JSON-LD credential with the signature suite
import {downloadRevocationList, verifyCredential} from "@sunbird-rc/verification-sdk";

const revocationList = await downloadRevocationList(revocation_url, issuerId);

const verificationStatus = await verifyCredential(issuerDidDoc, credential, revocationList);

Keywords

FAQs

Package last updated on 10 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc