Skip to content

Commit

Permalink
feat: Also add correlationId
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Lanser <[email protected]>
  • Loading branch information
Tommylans committed Oct 7, 2024
1 parent eaa6efe commit caa7b80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/core/src/modules/vc/W3cCredentialServiceOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ interface W3cVerifyPresentationOptionsBase {

export interface W3cJwtVerifyPresentationOptions extends W3cVerifyPresentationOptionsBase {
presentation: W3cJwtVerifiablePresentation | string // string must be encoded VP JWT
proofRecordId: string
proofRecordId?: string
correlationId?: string
}

export interface W3cJsonLdVerifyPresentationOptions extends W3cVerifyPresentationOptionsBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ export class W3cJwtCredentialService {
jwkResolver: () => proverPublicJwk,
trustedCertificates: await getTrustedCertificatesForProof?.(agentContext, {
proofRecordId: options.proofRecordId,
correlationId: options.correlationId,
}),
})

Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/modules/x509/X509ModuleConfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { AgentContext } from '../../agent'

type GetTrustedCertificatesForProofOptions = {
proofRecordId: string
proofRecordId?: string
correlationId?: string
}

export interface X509ModuleConfigOptions {
Expand Down

0 comments on commit caa7b80

Please sign in to comment.