@sphereon/ssi-sdk.vc-status-list 0.34.1-feature.merge.crypto.extensions.modules.39 → 0.34.1-feature.testbed.repair.105
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 +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
- package/src/impl/encoding/cbor.ts +14 -12
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.vc-status-list",
|
|
3
3
|
"description": "Sphereon SSI-SDK plugin for Status List management, like StatusList2021.",
|
|
4
|
-
"version": "0.34.1-feature.
|
|
4
|
+
"version": "0.34.1-feature.testbed.repair.105+defd7e7b",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@4sure-tech/vc-bitstring-status-lists": "0.1.0-unstable.1",
|
|
26
|
-
"@sd-jwt/core": "^0.
|
|
27
|
-
"@sd-jwt/jwt-status-list": "^0.
|
|
28
|
-
"@sd-jwt/sd-jwt-vc": "^0.
|
|
26
|
+
"@sd-jwt/core": "^0.15.0",
|
|
27
|
+
"@sd-jwt/jwt-status-list": "^0.15.0",
|
|
28
|
+
"@sd-jwt/sd-jwt-vc": "^0.15.1",
|
|
29
29
|
"@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
|
|
30
|
-
"@sphereon/oid4vci-common": "0.19.1-
|
|
31
|
-
"@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.
|
|
32
|
-
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.
|
|
33
|
-
"@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-feature.
|
|
34
|
-
"@sphereon/ssi-sdk.credential-vcdm": "0.34.1-feature.
|
|
35
|
-
"@sphereon/ssi-sdk.data-store": "0.34.1-feature.
|
|
36
|
-
"@sphereon/ssi-types": "0.34.1-feature.
|
|
30
|
+
"@sphereon/oid4vci-common": "0.19.1-feature.DIIPv4.86",
|
|
31
|
+
"@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.testbed.repair.105+defd7e7b",
|
|
32
|
+
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.testbed.repair.105+defd7e7b",
|
|
33
|
+
"@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-feature.testbed.repair.105+defd7e7b",
|
|
34
|
+
"@sphereon/ssi-sdk.credential-vcdm": "0.34.1-feature.testbed.repair.105+defd7e7b",
|
|
35
|
+
"@sphereon/ssi-sdk.data-store": "0.34.1-feature.testbed.repair.105+defd7e7b",
|
|
36
|
+
"@sphereon/ssi-types": "0.34.1-feature.testbed.repair.105+defd7e7b",
|
|
37
37
|
"@sphereon/vc-status-list": "7.0.0-next.0",
|
|
38
38
|
"@veramo/core": "4.2.0",
|
|
39
39
|
"@veramo/credential-status": "4.2.0",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"SSI",
|
|
73
73
|
"StatusList2021"
|
|
74
74
|
],
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "defd7e7b5888d83579230e183b6fe893352bece6"
|
|
76
76
|
}
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import type { BitsPerStatus } from '@sd-jwt/jwt-status-list'
|
|
2
2
|
import { StatusList } from '@sd-jwt/jwt-status-list'
|
|
3
3
|
import { deflate, inflate } from 'pako'
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
import mdocPkg from '@sphereon/kmp-mdoc-core'
|
|
6
|
+
const { com, kotlin } = mdocPkg
|
|
7
|
+
|
|
6
8
|
import base64url from 'base64url'
|
|
7
9
|
import type { IRequiredContext, SignedStatusListData } from '../../types'
|
|
8
10
|
import { type DecodedStatusListPayload, resolveIdentifier } from './common'
|
|
9
11
|
|
|
10
|
-
export type IKey =
|
|
11
|
-
export type CborItem<T> =
|
|
12
|
-
export const CborByteString = com.sphereon.cbor.CborByteString
|
|
13
|
-
export type CborByteStringType =
|
|
14
|
-
export const CborUInt = com.sphereon.cbor.CborUInt
|
|
15
|
-
export type CborUIntType =
|
|
16
|
-
export const CborString = com.sphereon.cbor.CborString
|
|
17
|
-
export type CborStringType =
|
|
12
|
+
export type IKey = mdocPkg.com.sphereon.crypto.IKey
|
|
13
|
+
export type CborItem<T> = mdocPkg.com.sphereon.cbor.CborItem<T>
|
|
14
|
+
export const CborByteString = mdocPkg.com.sphereon.cbor.CborByteString
|
|
15
|
+
export type CborByteStringType = mdocPkg.com.sphereon.cbor.CborByteString
|
|
16
|
+
export const CborUInt = mdocPkg.com.sphereon.cbor.CborUInt
|
|
17
|
+
export type CborUIntType = mdocPkg.com.sphereon.cbor.CborUInt
|
|
18
|
+
export const CborString = mdocPkg.com.sphereon.cbor.CborString
|
|
19
|
+
export type CborStringType = mdocPkg.com.sphereon.cbor.CborString
|
|
18
20
|
|
|
19
21
|
// const cbor = cborpkg.com.sphereon.cbor
|
|
20
|
-
// const kmp = cborpkg.com.sphereon.kmp
|
|
22
|
+
// const kmp = cborpkg. mdoc.com.sphereon.kmp
|
|
21
23
|
// const kotlin = cborpkg.kotlin
|
|
22
24
|
const decompressRawStatusList = (StatusList as any).decodeStatusList.bind(StatusList)
|
|
23
25
|
|
|
@@ -93,7 +95,7 @@ export const createSignedCbor = async (
|
|
|
93
95
|
function buildClaimsMap(
|
|
94
96
|
id: string,
|
|
95
97
|
issuerString: string,
|
|
96
|
-
statusListMap:
|
|
98
|
+
statusListMap: mdocPkg.com.sphereon.cbor.CborMap<CborStringType, CborItem<any>>,
|
|
97
99
|
expiresAt?: Date,
|
|
98
100
|
) {
|
|
99
101
|
const ttl = 65535 // FIXME figure out what value should be / come from and what the difference is with exp
|