@crefotrust/sdk

Tools to work with Crefotrust

Usage no npm install needed!

<script type="module">
  import crefotrustSdk from 'https://cdn.skypack.dev/@crefotrust/sdk';
</script>

README

crefotrust-js

This is a library which allows you to request verifiable credentials from your users through CrefoTrust and further verify that those credentials are valid and not revoked.

Typescript support is build in.

Getting Started

Installation

Install crefotrust in your npm project:

$ npm install @crefotrust/sdk

Usage

Quickstart

Import the CrefoTrust module

import { requestCredentials, VCType } from '@crefotrust/sdk';

Setup the needed credentials, for example:

const requiredCredentials = [VCType.NAME, VCType.ADDRESS, VCType.BIRTHDATE];

Request the credentials, this directly verifies them as well:

const vcs = await requestCredentials(requiredCredentials, 'Your company name')

Documentation

https://docs.crefotrust.de