SDJWT
class- Added
getHashAlgorithm()
method. - Added
getSDHash()
method.
- Added
SDConstants
class- Replaced
"type"
in theRETAINED_CLAIMS
set with"vct"
to align with the breaking change by the draft 01 of the SD-JWT VC specification.
- Replaced
- New types
SDObjectDecoder
classSDObjectEncoder
class
Update to follow the following normative changes of the SD-JWT specification.
- A tilde (
~
) is appended to "Combined Format for Issuance", resulting in that there is no formal difference between (a) Combined Format for Issuance and (b) Combined Format for Presentation without a binding JWT. - The format of the base JSON of Disclosure for an array element has changed
from
[salt, [name, index], value]
to[salt, value]
. - Disclosures for array elements are not put in the
_sd
array. Instead, each array element is replaced with{"...": "<digest>"}
. - Terminology changes. The terms "Combined Format for Issuance" and "Combined Format for Presentation" are obsoleted, and the entire combined format is called "SD-JWT".
-
Disclosure
class- Added
Disclosure(Object)
constructor. - Added
toArrayElement()
method. - Added
toArrayElement(String)
method. - Removed
Disclosure(String, int, Object)
constructor. - Removed
Disclosure(String, String, int, Object)
constructor. - Removed
getClaimIndex()
method.
- Added
-
SDObjectBuilder
class- Removed
putSDClaim(String, int, Object)
method. - Removed
putSDClaim(String, String, int, Object)
method.
- Removed
-
New types
SDJWT
class
-
Removed types
SDCombinedFormat
classSDIssuance
classSDPresentation
class
Support Disclosures for array elements.
-
Disclosure
class- Added
Disclosure(String, int, Object)
constructor. - Added
Disclosure(String, String, int, Object)
constructor. - Added
getClaimIndex()
method.
- Added
-
SDObjectBuilder
class- Added
putSDClaim(String, int, Object)
method. - Added
putSDClaim(String, String, int, Object)
method.
- Added
The initial implementation.
- New types
Disclosure
classSDCombinedFormat
classSDIssuance
classSDObjectBuilder
classSDPresentation
class