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

49 lines (48 loc) • 2.39 kB
import { W3cV2SdJwtVerifiableCredential } from "./W3cV2SdJwtVerifiableCredential.mjs"; import { W3cV2SdJwtSignCredentialOptions, W3cV2SdJwtSignPresentationOptions, W3cV2SdJwtVcPresentOptions, W3cV2SdJwtVerifyCredentialOptions, W3cV2SdJwtVerifyPresentationOptions } from "../W3cV2CredentialServiceOptions.mjs"; import { W3cV2SdJwtVerifiablePresentation } from "./W3cV2SdJwtVerifiablePresentation.mjs"; import { W3cV2VerifyCredentialResult, W3cV2VerifyPresentationResult } from "../models/W3cV2VerifyResult.mjs"; import "../models/index.mjs"; import { AgentContext } from "../../../agent/context/AgentContext.mjs"; import "../../../agent/context/index.mjs"; //#region src/modules/vc/sd-jwt-vc/W3cV2SdJwtCredentialService.d.ts /** * Supports signing and verifying W3C Verifiable Credentials and Presentations * secured with Selective Disclosure JSON Web Tokens (SD-JWT). * * @see https://www.w3.org/TR/vc-data-model/ * @see https://www.w3.org/TR/vc-jose-cose/#with-sd-jwt */ declare class W3cV2SdJwtCredentialService { /** * Signs a credential */ signCredential(agentContext: AgentContext, options: W3cV2SdJwtSignCredentialOptions): Promise<W3cV2SdJwtVerifiableCredential>; /** * Verifies the signature(s) of a credential * * @param credential the credential to be verified * @returns the verification result */ verifyCredential(agentContext: AgentContext, options: W3cV2SdJwtVerifyCredentialOptions): Promise<W3cV2VerifyCredentialResult>; /** * Signs a presentation including the credentials it includes * * @param presentation the presentation to be signed * @returns the signed presentation */ signPresentation(agentContext: AgentContext, options: W3cV2SdJwtSignPresentationOptions): Promise<W3cV2SdJwtVerifiablePresentation>; /** * Verifies a presentation including the credentials it includes * * @param presentation the presentation to be verified * @returns the verification result */ verifyPresentation(agentContext: AgentContext, options: W3cV2SdJwtVerifyPresentationOptions): Promise<W3cV2VerifyPresentationResult>; present(agentContext: AgentContext, options: W3cV2SdJwtVcPresentOptions): Promise<W3cV2SdJwtVerifiableCredential>; private validateDisclosureFrame; private getBaseSdJwtConfig; } //#endregion export { W3cV2SdJwtCredentialService }; //# sourceMappingURL=W3cV2SdJwtCredentialService.d.mts.map