@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
40 lines • 1.28 kB
text/typescript
import { ClaimFormat } from "../models/ClaimFormat.mjs";
import { Jwt } from "../../../crypto/jose/jwt/Jwt.mjs";
import { W3cV2Presentation } from "../models/presentation/W3cV2Presentation.mjs";
//#region src/modules/vc/jwt-vc/W3cV2JwtVerifiablePresentation.d.ts
export interface W3cV2JwtVerifiablePresentationOptions {
jwt: Jwt;
}
/**
* Represents a Verifiable Presentation encoded as a JWT.
*
* @see https://www.w3.org/TR/vc-jose-cose/#securing-vps-with-jose
*/
export declare class W3cV2JwtVerifiablePresentation {
constructor(options: W3cV2JwtVerifiablePresentationOptions);
static fromCompact(compact: string): W3cV2JwtVerifiablePresentation;
/**
* The original JWT.
*/
readonly jwt: Jwt;
/**
* Resolved presentation is the fully resolved {@link W3cV2Presentation} instance.
*/
readonly resolvedPresentation: W3cV2Presentation;
/**
* The encoded version of this presentation.
*/
get encoded(): string;
/**
* The {@link ClaimFormat} of the presentation.
*
* For W3C VP JWT credentials this is always `vp+jwt`.
*/
get claimFormat(): ClaimFormat.JwtW3cVp;
/**
* Validates the JWT and the resolved presentation.
*/
validate(): void;
}
//#endregion
//# sourceMappingURL=W3cV2JwtVerifiablePresentation.d.mts.map