-
Notifications
You must be signed in to change notification settings - Fork 13
05. Present API
Lukas.J.Han edited this page Dec 15, 2023
·
1 revision
const presentedSDJwt = await sdjwt.present(encodedSdjwt, presentationKeys);
- 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'
selectively disclosed encoded SD JWT string.
You can check the available presentationKeys by using presentableKeys
method
const keys = await sdjwt.presentableKeys();
// return string[]