UNPKG

@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

26 lines (25 loc) • 1.41 kB
import { ClaimFormat } from "../ClaimFormat.mjs"; import { W3cV2SdJwtVerifiablePresentation } from "../../sd-jwt-vc/W3cV2SdJwtVerifiablePresentation.mjs"; import "../../sd-jwt-vc/index.mjs"; import { W3cV2JwtVerifiablePresentation } from "../../jwt-vc/W3cV2JwtVerifiablePresentation.mjs"; import "../../jwt-vc/index.mjs"; //#region src/modules/vc/models/presentation/W3cV2VerifiablePresentation.d.ts /** * A Secured W3C Verifiable Presentation (VP) as defined in the W3C VC Data Model 2.0 * and secured according to the VC-JOSE-COSE specification. * * It can be one of: * - An Verifiable Presentation encoded as a JWT. * - An Verifiable Presentation encoded as a SD-JWT. * * This can be further enveloped using a {@link W3cV2EnvelopedVerifiablePresentation}. * * @see https://www.w3.org/TR/vc-data-model-2.0/ * @see https://www.w3.org/TR/vc-jose-cose/ * * TODO: add support for embedded proof mechanisms (Verifiable Credential Data Integrity 1.0) */ type W3cV2VerifiablePresentation<Format extends ClaimFormat.JwtW3cVp | ClaimFormat.SdJwtW3cVp | unknown = unknown> = Format extends ClaimFormat.JwtW3cVp ? W3cV2JwtVerifiablePresentation : Format extends ClaimFormat.SdJwtW3cVp ? W3cV2SdJwtVerifiablePresentation : W3cV2SdJwtVerifiablePresentation | W3cV2JwtVerifiablePresentation; //#endregion export { W3cV2VerifiablePresentation }; //# sourceMappingURL=W3cV2VerifiablePresentation.d.mts.map