@sd-jwt/sd-jwt-vc 0.7.2-next.0 → 0.7.2-next.2
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.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +7 -7
- package/src/sd-jwt-vc-instance.ts +5 -1
- package/test/app-e2e.spec.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _sd_jwt_types from '@sd-jwt/types';
|
|
1
2
|
import { SDJWTConfig, DisclosureFrame } from '@sd-jwt/types';
|
|
2
3
|
import { SdJwtPayload, SDJwtInstance } from '@sd-jwt/core';
|
|
3
4
|
|
|
@@ -57,6 +58,10 @@ declare class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
|
|
|
57
58
|
verify(encodedSDJwt: string, requiredClaimKeys?: string[], requireKeyBindings?: boolean): Promise<{
|
|
58
59
|
payload: SdJwtVcPayload;
|
|
59
60
|
header: Record<string, unknown> | undefined;
|
|
61
|
+
kb: {
|
|
62
|
+
payload: _sd_jwt_types.kbPayload;
|
|
63
|
+
header: _sd_jwt_types.kbHeader;
|
|
64
|
+
} | undefined;
|
|
60
65
|
}>;
|
|
61
66
|
}
|
|
62
67
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _sd_jwt_types from '@sd-jwt/types';
|
|
1
2
|
import { SDJWTConfig, DisclosureFrame } from '@sd-jwt/types';
|
|
2
3
|
import { SdJwtPayload, SDJwtInstance } from '@sd-jwt/core';
|
|
3
4
|
|
|
@@ -57,6 +58,10 @@ declare class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
|
|
|
57
58
|
verify(encodedSDJwt: string, requiredClaimKeys?: string[], requireKeyBindings?: boolean): Promise<{
|
|
58
59
|
payload: SdJwtVcPayload;
|
|
59
60
|
header: Record<string, unknown> | undefined;
|
|
61
|
+
kb: {
|
|
62
|
+
payload: _sd_jwt_types.kbPayload;
|
|
63
|
+
header: _sd_jwt_types.kbHeader;
|
|
64
|
+
} | undefined;
|
|
60
65
|
}>;
|
|
61
66
|
}
|
|
62
67
|
|
package/dist/index.js
CHANGED
|
@@ -123,7 +123,11 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends import_core.SDJwtInstance {
|
|
|
123
123
|
return __async(this, null, function* () {
|
|
124
124
|
var _a, _b, _c;
|
|
125
125
|
const result = yield __superGet(_SDJwtVcInstance.prototype, this, "verify").call(this, encodedSDJwt, requiredClaimKeys, requireKeyBindings).then((res) => {
|
|
126
|
-
return {
|
|
126
|
+
return {
|
|
127
|
+
payload: res.payload,
|
|
128
|
+
header: res.header,
|
|
129
|
+
kb: res.kb
|
|
130
|
+
};
|
|
127
131
|
});
|
|
128
132
|
if (result.payload.status) {
|
|
129
133
|
if (result.payload.status.status_list) {
|
package/dist/index.mjs
CHANGED
|
@@ -100,7 +100,11 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends SDJwtInstance {
|
|
|
100
100
|
return __async(this, null, function* () {
|
|
101
101
|
var _a, _b, _c;
|
|
102
102
|
const result = yield __superGet(_SDJwtVcInstance.prototype, this, "verify").call(this, encodedSDJwt, requiredClaimKeys, requireKeyBindings).then((res) => {
|
|
103
|
-
return {
|
|
103
|
+
return {
|
|
104
|
+
payload: res.payload,
|
|
105
|
+
header: res.header,
|
|
106
|
+
kb: res.kb
|
|
107
|
+
};
|
|
104
108
|
});
|
|
105
109
|
if (result.payload.status) {
|
|
106
110
|
if (result.payload.status.status_list) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-jwt/sd-jwt-vc",
|
|
3
|
-
"version": "0.7.2-next.
|
|
3
|
+
"version": "0.7.2-next.2+3883a74",
|
|
4
4
|
"description": "sd-jwt draft 7 implementation in typescript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
},
|
|
40
40
|
"license": "Apache-2.0",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@sd-jwt/core": "0.7.2-next.
|
|
43
|
-
"@sd-jwt/jwt-status-list": "0.7.2-next.
|
|
44
|
-
"@sd-jwt/utils": "0.7.2-next.
|
|
42
|
+
"@sd-jwt/core": "0.7.2-next.2+3883a74",
|
|
43
|
+
"@sd-jwt/jwt-status-list": "0.7.2-next.2+3883a74",
|
|
44
|
+
"@sd-jwt/utils": "0.7.2-next.2+3883a74"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@sd-jwt/crypto-nodejs": "0.7.2-next.
|
|
48
|
-
"@sd-jwt/types": "0.7.2-next.
|
|
47
|
+
"@sd-jwt/crypto-nodejs": "0.7.2-next.2+3883a74",
|
|
48
|
+
"@sd-jwt/types": "0.7.2-next.2+3883a74",
|
|
49
49
|
"jose": "^5.2.2"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"esm"
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "3883a74c3eff9588b47e6b7518127f646acd73d7"
|
|
68
68
|
}
|
|
@@ -104,7 +104,11 @@ export class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
|
|
|
104
104
|
const result = await super
|
|
105
105
|
.verify(encodedSDJwt, requiredClaimKeys, requireKeyBindings)
|
|
106
106
|
.then((res) => {
|
|
107
|
-
return {
|
|
107
|
+
return {
|
|
108
|
+
payload: res.payload as SdJwtVcPayload,
|
|
109
|
+
header: res.header,
|
|
110
|
+
kb: res.kb,
|
|
111
|
+
};
|
|
108
112
|
});
|
|
109
113
|
|
|
110
114
|
if (result.payload.status) {
|