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

40 lines • 1.25 kB
import { ClaimFormat } from "../models/ClaimFormat.mjs"; import { W3cV2Credential } from "../models/credential/W3cV2Credential.mjs"; import { Jwt } from "../../../crypto/jose/jwt/Jwt.mjs"; //#region src/modules/vc/jwt-vc/W3cV2JwtVerifiableCredential.d.ts export interface W3cV2JwtVerifiableCredentialOptions { jwt: Jwt; } /** * Represents a Verifiable Credential encoded as a JWT. * * @see https://www.w3.org/TR/vc-jose-cose/#securing-with-jose */ export declare class W3cV2JwtVerifiableCredential { constructor(options: W3cV2JwtVerifiableCredentialOptions); static fromCompact(compact: string): W3cV2JwtVerifiableCredential; /** * The original JWT. */ readonly jwt: Jwt; /** * Resolved credential is the fully resolved {@link W3cV2Credential} instance. */ readonly resolvedCredential: W3cV2Credential; /** * The encoded version of this credential. */ get encoded(): string; /** * The {@link ClaimFormat} of the credential. * * For W3C VC JWT credentials this is always `vc+jwt`. */ get claimFormat(): ClaimFormat.JwtW3cVc; /** * Validates the JWT and the resolved credential contained. */ validate(): void; } //#endregion //# sourceMappingURL=W3cV2JwtVerifiableCredential.d.mts.map