@sphereon/ssi-sdk.vc-status-list 0.34.1-feature.SSISDK.17.bitstring.sl.11 → 0.34.1-feature.SSISDK.17.bitstring.sl.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,20 +12,13 @@ import {
12
12
  StatusListType,
13
13
  type StatusPurpose2021,
14
14
  } from '@sphereon/ssi-types'
15
- import type {
16
- CredentialPayload,
17
- IAgentContext,
18
- ICredentialIssuer,
19
- ICredentialPlugin,
20
- ICredentialVerifier,
21
- IKeyManager,
22
- IPluginMethodMap,
23
- } from '@veramo/core'
15
+ import type { CredentialPayload, IAgentContext, ICredentialIssuer, ICredentialVerifier, IKeyManager, IPluginMethodMap } from '@veramo/core'
24
16
  import { DataSource } from 'typeorm'
25
17
  import type { BitsPerStatus } from '@sd-jwt/jwt-status-list'
26
18
  import type { SdJwtVcPayload } from '@sd-jwt/sd-jwt-vc'
27
19
  import type { StatusListOpts } from '@sphereon/oid4vci-common'
28
20
  import { BitstringStatusPurpose } from '@4sure-tech/vc-bitstring-status-lists'
21
+ import { IVcdmCredentialPlugin } from '@sphereon/ssi-sdk.credential-vcdm'
29
22
 
30
23
  export enum StatusOAuth {
31
24
  Valid = 0,
@@ -309,5 +302,5 @@ export type SignedStatusListData = {
309
302
  encodedList: string
310
303
  }
311
304
 
312
- export type IRequiredPlugins = ICredentialPlugin & IIdentifierResolution
313
- export type IRequiredContext = IAgentContext<ICredentialIssuer & ICredentialVerifier & IIdentifierResolution & IKeyManager & ICredentialPlugin>
305
+ export type IRequiredPlugins = IVcdmCredentialPlugin & IIdentifierResolution
306
+ export type IRequiredContext = IAgentContext<ICredentialIssuer & ICredentialVerifier & IIdentifierResolution & IKeyManager & IVcdmCredentialPlugin>
package/src/utils.ts CHANGED
@@ -41,7 +41,7 @@ export function getAssertedProperty<T extends object>(propertyName: string, obj:
41
41
  const ValidProofTypeMap = new Map<StatusListType, CredentialProofFormat[]>([
42
42
  [StatusListType.StatusList2021, ['jwt', 'lds']],
43
43
  [StatusListType.OAuthStatusList, ['jwt', 'cbor']],
44
- [StatusListType.BitstringStatusList, ['lds']],
44
+ [StatusListType.BitstringStatusList, ['lds', 'vc+jwt']],
45
45
  ])
46
46
 
47
47
  export function assertValidProofType(type: StatusListType, proofFormat: CredentialProofFormat) {