@verii/verii-verification 1.1.0-pre.1759611851 → 1.1.0-pre.1759931450
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/package.json +13 -13
- package/src/verify-credentials.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verii/verii-verification",
|
|
3
|
-
"version": "1.1.0-pre.
|
|
3
|
+
"version": "1.1.0-pre.1759931450",
|
|
4
4
|
"description": "Verii VC and VP Verification library ",
|
|
5
5
|
"repository": "https://github.com/LFDT-Verii/core",
|
|
6
6
|
"main": "index.js",
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
"author": "Yauheni Pozdnyakov",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@verii/common-fetchers": "1.1.0-pre.
|
|
21
|
-
"@verii/common-functions": "1.1.0-pre.
|
|
22
|
-
"@verii/did-doc": "1.1.0-pre.
|
|
23
|
-
"@verii/http-client": "1.1.0-pre.
|
|
24
|
-
"@verii/jwt": "1.1.0-pre.
|
|
25
|
-
"@verii/metadata-registration": "1.1.0-pre.
|
|
26
|
-
"@verii/vc-checks": "1.1.0-pre.
|
|
20
|
+
"@verii/common-fetchers": "1.1.0-pre.1759931450",
|
|
21
|
+
"@verii/common-functions": "1.1.0-pre.1759931450",
|
|
22
|
+
"@verii/did-doc": "1.1.0-pre.1759931450",
|
|
23
|
+
"@verii/http-client": "1.1.0-pre.1759931450",
|
|
24
|
+
"@verii/jwt": "1.1.0-pre.1759931450",
|
|
25
|
+
"@verii/metadata-registration": "1.1.0-pre.1759931450",
|
|
26
|
+
"@verii/vc-checks": "1.1.0-pre.1759931450",
|
|
27
27
|
"http-errors": "^2.0.0",
|
|
28
28
|
"lodash": "^4.17.21"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@verii/crypto": "1.1.0-pre.
|
|
32
|
-
"@verii/sample-data": "1.1.0-pre.
|
|
33
|
-
"@verii/test-regexes": "1.1.0-pre.
|
|
34
|
-
"@verii/tests-helpers": "1.1.0-pre.
|
|
31
|
+
"@verii/crypto": "1.1.0-pre.1759931450",
|
|
32
|
+
"@verii/sample-data": "1.1.0-pre.1759931450",
|
|
33
|
+
"@verii/test-regexes": "1.1.0-pre.1759931450",
|
|
34
|
+
"@verii/tests-helpers": "1.1.0-pre.1759931450",
|
|
35
35
|
"date-fns": "3.6.0",
|
|
36
36
|
"eslint": "8.57.1",
|
|
37
37
|
"eslint-config-airbnb-base": "14.2.1",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"lib"
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "349516ab556de49b3272fd1d7a28607f10ecd215"
|
|
57
57
|
}
|
|
@@ -41,7 +41,7 @@ const {
|
|
|
41
41
|
CheckResults,
|
|
42
42
|
CredentialStatus,
|
|
43
43
|
checkExpiration,
|
|
44
|
-
|
|
44
|
+
checkJwsVcTampering,
|
|
45
45
|
checkCredentialStatus,
|
|
46
46
|
checkIssuerTrust,
|
|
47
47
|
checkHolder,
|
|
@@ -336,7 +336,7 @@ const runTamperingCheck = (
|
|
|
336
336
|
if (key == null && isIssuerTheSubject(keyMetadata)) {
|
|
337
337
|
key = keyMetadata.jwk;
|
|
338
338
|
}
|
|
339
|
-
return
|
|
339
|
+
return checkJwsVcTampering(jwtVc, key, context);
|
|
340
340
|
};
|
|
341
341
|
|
|
342
342
|
const runIssuerTrustCheck = (
|