JptPresentationValidatorUtils
@iota/identity-wasm API documentation
Class: JptPresentationValidatorUtils
Utility functions for verifying JPT presentations.
Methods
extractIssuerFromPresentedJpt()
static
extractIssuerFromPresentedJpt(presentation
):CoreDID
Utility for extracting the issuer field of a credential in JPT representation as DID.
Errors
If the JPT decoding fails or the issuer field is not a valid DID.
Parameters
presentation
Returns
checkTimeframesWithValidityTimeframe2024()
static
checkTimeframesWithValidityTimeframe2024(credential
,validity_timeframe
,status_check
):void
Check timeframe interval in credentialStatus with RevocationTimeframeStatus
.
Parameters
credential
validity_timeframe
undefined
| null
| Timestamp
status_check
Returns
void