Skip to content

03. SD JWT API

Lukas.J.Han edited this page Dec 15, 2023 · 1 revision

Usage

You can use API through default sdjwt Instance.

import sdjwt from '@hopae/sd-jwt';

sdjwt.issue(...)

Methods

  • create([config])
  • issue(claims, privateKey[, disclosureFrame, options])
  • present(encodedSDJwt[, presentationKeys])
  • validate(encodedSDJwt, publicKey)
  • verify(encodedSDJwt, publicKey[, requiredClaimKeys, options])
  • config(config)
  • encode(sdjwt)
  • decode(encodedSDJwt)
  • keys(encodedSDJwt)
  • presentableKeys(encodedSDJwt)
  • getClaims(encodedSDJwt)
Clone this wiki locally