@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
31 lines (30 loc) • 1.02 kB
text/typescript
import { JsonObject } from "../../../../types.mjs";
//#region src/modules/vc/data-integrity/libraries/vc.d.ts
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;
}
interface W3cVerifyCredentialResult {
verified: boolean;
error?: Error;
results: W3cVerificationResult[];
}
interface W3cVerifyPresentationResult {
verified: boolean;
error?: Error;
presentationResult: W3cVerificationResult;
credentialResults: W3cVerifyCredentialResult[];
}
//#endregion
export { VC, W3cVerifyCredentialResult, W3cVerifyPresentationResult };
//# sourceMappingURL=vc.d.mts.map