@aviarytech/didcomm-protocols.present-proof
Version:
DIDComm Present Proof Protocol
25 lines (24 loc) • 966 B
TypeScript
import { IDIDComm, IDIDCommMessage, IDIDCommMessageHandler } from "@aviarytech/didcomm-messaging";
export declare const PROPOSE_PRESENTATION_TYPE = "https://didcomm.org/present-proof/3.0/propose-presentation";
export declare class ProposePresentationMessage implements IDIDCommMessage {
payload: {
id: string;
type: string;
from: string;
pthid: string;
to: string[];
created_time?: string;
body: {};
};
repudiable: boolean;
constructor(from: string, to: string[], pthid: string);
}
export declare class ProposePresentationMessageHandler implements IDIDCommMessageHandler {
type: string;
callback: (msg: ProposePresentationMessage, didcomm: IDIDComm) => Promise<void>;
constructor(callback: (msg: ProposePresentationMessage, didcomm: IDIDComm) => Promise<void>);
handle(props: {
message: ProposePresentationMessage;
didcomm: IDIDComm;
}): Promise<boolean>;
}