Skip to main content
Version: 1.3

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

NameType
presentationJpt

Returns

CoreDID


checkTimeframesWithValidityTimeframe2024

Static checkTimeframesWithValidityTimeframe2024(credential, validity_timeframe, status_check): void

Check timeframe interval in credentialStatus with RevocationTimeframeStatus.

Parameters

NameType
credentialCredential
validity_timeframeundefined | Timestamp
status_checkStatusCheck

Returns

void