Skip to main content
info
IOTA Identity for Rebased is currently in alpha and may still be subject to significant changes

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

Jpt

Returns

CoreDID


checkTimeframesWithValidityTimeframe2024()

static checkTimeframesWithValidityTimeframe2024(credential, validity_timeframe, status_check): void

Check timeframe interval in credentialStatus with RevocationTimeframeStatus.

Parameters

credential

Credential

validity_timeframe

undefined | null | Timestamp

status_check

StatusCheck

Returns

void