Class: JptPresentationValidatorUtils
identity_wasm.JptPresentationValidatorUtils
Utility functions for verifying JPT presentations.
Table of contents
Methods
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
Name | Type |
---|---|
presentation | Jpt |
Returns
checkTimeframesWithValidityTimeframe2024
▸ Static
checkTimeframesWithValidityTimeframe2024(credential
, validity_timeframe
, status_check
): void
Check timeframe interval in credentialStatus with RevocationTimeframeStatus
.
Parameters
Name | Type |
---|---|
credential | Credential |
validity_timeframe | undefined | Timestamp |
status_check | StatusCheck |
Returns
void