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

20 lines • 1.04 kB
import { JsonObject } from "../../../../types.mjs"; import { W3cJsonLdVerifiableCredential } from "../models/W3cJsonLdVerifiableCredential.mjs"; //#region src/modules/vc/linked-data-proofs/proof-ops/deriveProof.d.ts export interface W3cJsonLdDeriveProofOptions { credential: W3cJsonLdVerifiableCredential; revealDocument: JsonObject; verificationMethod: string; } /** * Derives a proof from a document featuring a supported linked data proof * * NOTE - This is a temporary API extending JSON-LD signatures * * @param proofDocument A document featuring a linked data proof capable of proof derivation * @param revealDocument A document of the form of a JSON-LD frame describing the terms to selectively derive from the proof document * @param options Options for proof derivation */ export declare const deriveProof: (proofDocument: JsonObject, revealDocument: JsonObject, { suite, skipProofCompaction, documentLoader, nonce }: any) => Promise<W3cJsonLdVerifiableCredential>; //#endregion //# sourceMappingURL=deriveProof.d.mts.map