Skip to main content
Version: 1.4

Class: JptPresentationValidator

identity_wasm.JptPresentationValidator

Table of contents

Methods

Methods

validate

Static validate(presentation_jpt, issuer, options, fail_fast): DecodedJptPresentation

Decodes and validates a Presented Credential issued as a JPT (JWP Presented Form). A DecodedJptPresentation is returned upon success.

The following properties are validated according to options:

  • the holder's proof on the JWP,
  • the expiration date,
  • the issuance date,
  • the semantic structure.

Parameters

NameType
presentation_jptJpt
issuerIToCoreDocument | CoreDocument
optionsJptPresentationValidationOptions
fail_fastFailFast

Returns

DecodedJptPresentation