UNPKG

@aviarytech/didcomm-protocols.present-proof

Version:
27 lines (26 loc) 1.17 kB
import { IDIDComm, IDIDCommMessage, IDIDCommMessageHandler } from "@aviarytech/didcomm-messaging"; import { IDIFPresentationExchangeDefinitionAttachment } from "../interfaces"; export declare const REQUEST_PRESENTATION_TYPE = "https://didcomm.org/present-proof/3.0/request-presentation"; export declare class RequestPresentationMessage implements IDIDCommMessage { payload: { id: string; type: string; from: string; thid: string; to: string[]; created_time?: string; body: {}; attachments: IDIFPresentationExchangeDefinitionAttachment[]; }; repudiable: boolean; constructor(from: string, to: string[], thid: string, attachments: IDIFPresentationExchangeDefinitionAttachment[]); } export declare class RequestPresentationMessageHandler implements IDIDCommMessageHandler { type: string; callback: (msg: RequestPresentationMessage, didcomm: IDIDComm) => Promise<void>; constructor(callback: (msg: RequestPresentationMessage, didcomm: IDIDComm) => Promise<void>); handle(props: { message: RequestPresentationMessage; didcomm: IDIDComm; }): Promise<boolean>; }