fromDataItem

suspend fun fromDataItem(dataItem: DataItem, expirationTime: Instant): StatusList

Parses CBOR as status list.

This method is mostly useful for testing, as CBOR is typically wrapped in JWT.

Return

parsed CompressedStatusList

Parameters

dataItem

CBOR status list representation

expirationTime

time when this status list expires

Throws

when dataItem does not represent status list