@credo-ts/core
Version:
<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1
33 lines • 1.14 kB
text/typescript
import { JsonObject } from "../../../../types.mjs";
declare namespace vc_adapter_d_exports {
export { VC, W3cVerifyCredentialResult, W3cVerifyPresentationResult, _default as default };
}
export interface VC {
issue(options: any): Promise<Record<string, unknown>>;
verifyCredential(options: any): Promise<W3cVerifyCredentialResult>;
createPresentation(options: any): Promise<Record<string, unknown>>;
signPresentation(options: any): Promise<Record<string, unknown>>;
verify(options: any): Promise<W3cVerifyPresentationResult>;
}
interface W3cVerificationResult {
isValid: boolean;
error?: Error;
verificationMethod?: JsonObject;
proof?: JsonObject;
purposeResult?: JsonObject;
}
export interface W3cVerifyCredentialResult {
verified: boolean;
error?: Error;
results: W3cVerificationResult[];
}
export interface W3cVerifyPresentationResult {
verified: boolean;
error?: Error;
presentationResult: W3cVerificationResult;
credentialResults: W3cVerifyCredentialResult[];
}
declare const _default: VC;
//#endregion
export { _default as default, vc_adapter_d_exports };
//# sourceMappingURL=vc-adapter.d.mts.map