{"version":3,"file":"IAnonCredsDataIntegrityService.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/models/IAnonCredsDataIntegrityService.ts"],"sourcesContent":["import type { AgentContext } from '../../../../agent'\nimport type {\n  DifPresentationExchangeDefinition,\n  DifPresentationExchangeSubmission,\n} from '../../../dif-presentation-exchange'\nimport type { W3cPresentation } from '../../models'\nimport type { W3cCredentialRecord } from '../../repository'\nimport type { W3cJsonLdVerifiablePresentation } from './W3cJsonLdVerifiablePresentation'\n\nexport const ANONCREDS_DATA_INTEGRITY_CRYPTOSUITE = 'anoncreds-2023' as const\n\nexport interface AnoncredsDataIntegrityCreatePresentation {\n  selectedCredentialRecords: W3cCredentialRecord[]\n  presentationDefinition: DifPresentationExchangeDefinition\n  presentationSubmission: DifPresentationExchangeSubmission\n  challenge: string\n}\n\nexport interface AnoncredsDataIntegrityVerifyPresentation {\n  presentation: W3cJsonLdVerifiablePresentation\n  presentationDefinition: DifPresentationExchangeDefinition\n  presentationSubmission: DifPresentationExchangeSubmission\n  challenge: string\n}\n\nexport const AnonCredsDataIntegrityServiceSymbol = Symbol('AnonCredsDataIntegrityService')\n\n/**\n * We keep this standalone and don't integrity it\n * with for example the SignatureSuiteRegistry due\n * to it's unique properties, in order to not pollute,\n * the existing api's.\n */\nexport interface IAnonCredsDataIntegrityService {\n  createPresentation(\n    agentContext: AgentContext,\n    options: AnoncredsDataIntegrityCreatePresentation\n  ): Promise<W3cPresentation>\n\n  verifyPresentation(agentContext: AgentContext, options: AnoncredsDataIntegrityVerifyPresentation): Promise<boolean>\n}\n"],"mappings":";;;AASA,MAAa,uCAAuC;AAgBpD,MAAa,sCAAsC,OAAO,gCAAgC"}