@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.
- package/dist/index.cjs +114 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +115 -65
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/src/functions.ts +8 -29
- package/src/impl/BitstringStatusListImplementation.ts +159 -62
- package/src/impl/IStatusList.ts +8 -4
- package/src/impl/OAuthStatusList.ts +4 -3
- package/src/impl/StatusList2021.ts +6 -5
- package/src/types/index.ts +4 -11
- package/src/utils.ts +1 -1
package/src/types/index.ts
CHANGED
|
@@ -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 =
|
|
313
|
-
export type IRequiredContext = IAgentContext<ICredentialIssuer & ICredentialVerifier & IIdentifierResolution & IKeyManager &
|
|
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) {
|