UNPKG

@animo-id/pex

Version:

A Typescript implementation of the v1 and v2 DIF Presentation Exchange specification

19 lines (18 loc) 1.04 kB
import { InputDescriptorV1, InputDescriptorV2 } from '@sphereon/pex-models'; import { IInternalPresentationDefinition } from '../../types/Internal.types'; import { WrappedVerifiableCredential } from '../../types/PexCredentialMapper'; import { HandlerCheckResult } from '../core'; import { EvaluationClient } from '../evaluationClient'; import { AbstractEvaluationHandler } from './abstractEvaluationHandler'; export declare function eligibleInputDescriptorsForWrappedVc(inputDescriptors: Array<InputDescriptorV2 | InputDescriptorV1>, vcIndex: number, results: HandlerCheckResult[]): { inputDescriptor: InputDescriptorV1 | InputDescriptorV2; inputDescriptorIndex: number; }[]; export declare class MarkForSubmissionEvaluationHandler extends AbstractEvaluationHandler { constructor(client: EvaluationClient); getName(): string; handle(pd: IInternalPresentationDefinition, wrappedVcs: WrappedVerifiableCredential[]): void; private retrieveNoErrorStatus; private produceSuccessResults; private produceErrorResults; }