Skip to content

05. Present API

Lukas.J.Han edited this page Dec 15, 2023 · 1 revision
const presentedSDJwt = await sdjwt.present(encodedSdjwt, presentationKeys);

Parameters

  • encodedSdjwt: encoded SD JWT [string]
  • presentationKeys: JSON path key to selectively disclosure [Array] (optional)
{
  data: {
    arr: ['value']
  }
}

// The JSON Path of value 'value' is 'data.arr.0'

Returns

selectively disclosed encoded SD JWT string.

presentationKeys

You can check the available presentationKeys by using presentableKeys method

const keys = await sdjwt.presentableKeys();
// return string[]
Clone this wiki locally