@aviarytech/didcomm-protocols.present-proof
Version:
DIDComm Present Proof Protocol
27 lines (26 loc) • 1.12 kB
TypeScript
import { IDIDComm, IDIDCommMessage, IDIDCommMessageHandler } from "@aviarytech/didcomm-messaging";
import { IDIFPresentationExchangeSubmissionAttachment } from "../interfaces";
export declare const PRESENTATION_TYPE = "https://didcomm.org/present-proof/3.0/presentation";
export declare class PresentationMessage implements IDIDCommMessage {
payload: {
id: string;
type: string;
from: string;
thid: string;
to: string[];
created_time?: string;
body: {};
attachments: IDIFPresentationExchangeSubmissionAttachment[];
};
repudiable: boolean;
constructor(from: string, to: string[], thid: string, attachments: IDIFPresentationExchangeSubmissionAttachment[]);
}
export declare class PresentationMessageHandler implements IDIDCommMessageHandler {
type: string;
callback: (msg: PresentationMessage, didcomm: IDIDComm) => Promise<void>;
constructor(callback: (msg: PresentationMessage, didcomm: IDIDComm) => Promise<void>);
handle(props: {
message: PresentationMessage;
didcomm: IDIDComm;
}): Promise<boolean>;
}