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

30 lines (29 loc) • 1.45 kB
import { SingleOrArray } from "../../../../types.mjs"; import { ClaimFormat } from "../../models/ClaimFormat.mjs"; import { DataIntegrityProof, DataIntegrityProofOptions } from "./DataIntegrityProof.mjs"; import { LinkedDataProof, LinkedDataProofOptions } from "./LinkedDataProof.mjs"; import { W3cPresentation, W3cPresentationOptions } from "../../models/presentation/W3cPresentation.mjs"; import "../../models/index.mjs"; //#region src/modules/vc/data-integrity/models/W3cJsonLdVerifiablePresentation.d.ts interface W3cJsonLdVerifiablePresentationOptions extends W3cPresentationOptions { proof: LinkedDataProofOptions | DataIntegrityProofOptions; } declare class W3cJsonLdVerifiablePresentation extends W3cPresentation { constructor(options: W3cJsonLdVerifiablePresentationOptions); proof: SingleOrArray<LinkedDataProof | DataIntegrityProof>; get proofTypes(): Array<string>; get dataIntegrityCryptosuites(): Array<string>; toJson(): Record<string, any>; /** * The {@link ClaimFormat} of the presentation. For JSON-LD credentials this is always `ldp_vp`. */ get claimFormat(): ClaimFormat.LdpVp; /** * Get the encoded variant of the W3C Verifiable Presentation. For JSON-LD presentations this is * a JSON object. */ get encoded(): Record<string, any>; } //#endregion export { W3cJsonLdVerifiablePresentation, W3cJsonLdVerifiablePresentationOptions }; //# sourceMappingURL=W3cJsonLdVerifiablePresentation.d.mts.map