diff --git a/package-lock.json b/package-lock.json index d7cc93f..95fdd8b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@blockcerts/cert-verifier-js": "^6.22.1", + "@blockcerts/cert-verifier-js": "^6.25.0", "body-parser": "^1.20.2", "express": "^4.18.2" }, @@ -658,9 +658,9 @@ } }, "node_modules/@blockcerts/cert-verifier-js": { - "version": "6.22.1", - "resolved": "https://registry.npmjs.org/@blockcerts/cert-verifier-js/-/cert-verifier-js-6.22.1.tgz", - "integrity": "sha512-PCyXMZNGB0q70oUeW+LTyS/pPOEit+/mglyjhAF4Xg8+Jo4kNw10YwbYxesOK7ChQiZ4OBuls18nZPqjp6OPhw==", + "version": "6.25.0", + "resolved": "https://registry.npmjs.org/@blockcerts/cert-verifier-js/-/cert-verifier-js-6.25.0.tgz", + "integrity": "sha512-dNCUKgEN+9wovR/U8PhWKB+BOKyEerR/A5s7zlfpoIS4LcNtBn7hwCTx2iavsXPXH22pTUBn5A/CM/+MuHKhFw==", "license": "MIT", "dependencies": { "@blockcerts/ecdsa-secp256k1-signature-2019": "^0.1.7", @@ -683,8 +683,8 @@ "buffer": "^6.0.3", "jsonld": "^8.3.2", "jsonld-checker": "npm:@blockcerts/jsonld-checker@^0.1.9", - "jsonld-signatures": "^11.2.1", - "jsonld-signatures-merkleproof2019": "^2.7.2", + "jsonld-signatures": "^11.3.2", + "jsonld-signatures-merkleproof2019": "^2.11.0", "lodash.clonedeep": "^4.5.0", "secp256k1": "^5.0.0", "sha256": "^0.2.0" @@ -733,6 +733,7 @@ "version": "1.5.2", "resolved": "https://registry.npmjs.org/@blockcerts/explorer-lookup/-/explorer-lookup-1.5.2.tgz", "integrity": "sha512-n7kcD1IlO+JYh7c7FIYooV20U0JNdzIZrgFXcReFJKxM5UnDdLv/jRUfLjTPmBqBqTRucf/nesz1R5WYUAVOEg==", + "license": "MIT", "dependencies": { "xmlhttprequest": "^1.8.0" } @@ -931,7 +932,8 @@ "node_modules/@exodus/schemasafe": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/@exodus/schemasafe/-/schemasafe-1.3.0.tgz", - "integrity": "sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==" + "integrity": "sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==", + "license": "MIT" }, "node_modules/@fastify/busboy": { "version": "2.1.0", @@ -1283,9 +1285,10 @@ ] }, "node_modules/@noble/hashes": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.5.0.tgz", - "integrity": "sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.6.1.tgz", + "integrity": "sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w==", + "license": "MIT", "engines": { "node": "^14.21.3 || >=16" }, @@ -1831,6 +1834,7 @@ "version": "0.0.12", "resolved": "https://registry.npmjs.org/@vaultie/lds-merkle-proof-2019/-/lds-merkle-proof-2019-0.0.12.tgz", "integrity": "sha512-ltUsKiwbDtcwlxWwEl4tWVsP7M3ftQv+lA2KHMRtu9OJydm3bX2iosAZ1qWInNgsGJhNa4LfmskY7gVRvALmxA==", + "license": "MIT", "dependencies": { "@exodus/schemasafe": "^1.3.0", "cbor": "^5.0.1", @@ -2063,7 +2067,8 @@ "node_modules/base-x": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", - "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==" + "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==", + "license": "MIT" }, "node_modules/base58-universal": { "version": "2.0.0", @@ -2114,12 +2119,14 @@ "node_modules/bech32": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/bech32/-/bech32-2.0.0.tgz", - "integrity": "sha512-LcknSilhIGatDAsY1ak2I8VtGaHNhgMSYVxFrGLXv+xLHytaKZKcaUJJUE7qmBr7h33o5YQwP55pMI0xmkpJwg==" + "integrity": "sha512-LcknSilhIGatDAsY1ak2I8VtGaHNhgMSYVxFrGLXv+xLHytaKZKcaUJJUE7qmBr7h33o5YQwP55pMI0xmkpJwg==", + "license": "MIT" }, "node_modules/bignumber.js": { "version": "9.1.2", "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", + "license": "MIT", "engines": { "node": "*" } @@ -2128,14 +2135,16 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/bip174/-/bip174-2.1.1.tgz", "integrity": "sha512-mdFV5+/v0XyNYXjBS6CQPLo9ekCx4gtKZFnJm5PMto7Fs9hTTDpkkzOB7/FtluRI6JbUUAu+snTYfJRgHLZbZQ==", + "license": "MIT", "engines": { "node": ">=8.0.0" } }, "node_modules/bitcoinjs-lib": { - "version": "6.1.6", - "resolved": "https://registry.npmjs.org/bitcoinjs-lib/-/bitcoinjs-lib-6.1.6.tgz", - "integrity": "sha512-Fk8+Vc+e2rMoDU5gXkW9tD+313rhkm5h6N9HfZxXvYU9LedttVvmXKTgd9k5rsQJjkSfsv6XRM8uhJv94SrvcA==", + "version": "6.1.7", + "resolved": "https://registry.npmjs.org/bitcoinjs-lib/-/bitcoinjs-lib-6.1.7.tgz", + "integrity": "sha512-tlf/r2DGMbF7ky1MgUqXHzypYHakkEnm0SZP23CJKIqNY/5uNAnMbFhMJdhjrL/7anfb/U8+AlpdjPWjPnAalg==", + "license": "MIT", "dependencies": { "@noble/hashes": "^1.2.0", "bech32": "^2.0.0", @@ -2252,6 +2261,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", + "license": "MIT", "dependencies": { "base-x": "^4.0.0" } @@ -2260,6 +2270,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-3.0.1.tgz", "integrity": "sha512-hjuuJvoWEybo7Hn/0xOrczQKKEKD63WguEjlhLExYs2wUBcebDC1jDNK17eEAD2lYfw82d5ASC1d7K3SWszjaQ==", + "license": "MIT", "dependencies": { "@noble/hashes": "^1.2.0", "bs58": "^5.0.0" @@ -2371,6 +2382,7 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/cbor/-/cbor-5.2.0.tgz", "integrity": "sha512-5IMhi9e1QU76ppa5/ajP1BmMWZ2FHkhAhjeVKQ/EFCgYSEaeVaoGtL7cxJskf9oCCk+XjzaIdc3IuU/dbA/o2A==", + "license": "MIT", "dependencies": { "bignumber.js": "^9.0.1", "nofilter": "^1.0.4" @@ -2758,6 +2770,7 @@ "version": "1.3.5", "resolved": "https://registry.npmjs.org/encodr/-/encodr-1.3.5.tgz", "integrity": "sha512-HFlqEF3fous7l6LqLyD1V0ZcqIDKHD8elVM2foaFusQWFioe4HYZJvp1DhDJJnrErrlfNVkGdOdwim4MYx+weQ==", + "license": "MIT", "dependencies": { "bignumber.js": "9.1.1", "cbor": "9.0.0", @@ -2773,6 +2786,7 @@ "version": "9.1.1", "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz", "integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==", + "license": "MIT", "engines": { "node": "*" } @@ -2781,6 +2795,7 @@ "version": "9.0.0", "resolved": "https://registry.npmjs.org/cbor/-/cbor-9.0.0.tgz", "integrity": "sha512-87cFgOKxjUOnGpNeQMBVER4Mc/rZAk9xC+Ygfx5FLCAUt/tpVHphuZC5fJmp/KSDsEsBEDIPtEt0YbD/GFQw8Q==", + "license": "MIT", "dependencies": { "nofilter": "^3.1.0" }, @@ -2792,6 +2807,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/nofilter/-/nofilter-3.1.0.tgz", "integrity": "sha512-l2NNj07e9afPnhAhvgVrCD/oy2Ai1yfLpuo3EpiO1jFTsB4sFz6oIfAfSZyQzVpkZQ9xS8ZS5g1jCBgq4Hwo0g==", + "license": "MIT", "engines": { "node": ">=12.19" } @@ -2867,7 +2883,8 @@ "node_modules/event-lite": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/event-lite/-/event-lite-0.1.3.tgz", - "integrity": "sha512-8qz9nOz5VeD2z96elrEKD2U433+L3DWdUdDkOINLGOJvx1GsMBbMn0aCeu28y8/e85A6mCigBiFlYMnTBEGlSw==" + "integrity": "sha512-8qz9nOz5VeD2z96elrEKD2U433+L3DWdUdDkOINLGOJvx1GsMBbMn0aCeu28y8/e85A6mCigBiFlYMnTBEGlSw==", + "license": "MIT" }, "node_modules/event-target-shim": { "version": "5.0.1", @@ -3385,7 +3402,8 @@ "node_modules/int64-buffer": { "version": "0.1.10", "resolved": "https://registry.npmjs.org/int64-buffer/-/int64-buffer-0.1.10.tgz", - "integrity": "sha512-v7cSY1J8ydZ0GyjUHqF+1bshJ6cnEVLo9EnjB8p+4HDRPZc9N5jjmvUV7NvEsqQOKyH0pmIBFWXVQbiS0+OBbA==" + "integrity": "sha512-v7cSY1J8ydZ0GyjUHqF+1bshJ6cnEVLo9EnjB8p+4HDRPZc9N5jjmvUV7NvEsqQOKyH0pmIBFWXVQbiS0+OBbA==", + "license": "MIT" }, "node_modules/ipaddr.js": { "version": "1.9.1", @@ -3460,7 +3478,8 @@ "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", @@ -4156,7 +4175,8 @@ "node_modules/js-sha3": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", - "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" + "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==", + "license": "MIT" }, "node_modules/js-tokens": { "version": "4.0.0", @@ -4230,9 +4250,10 @@ } }, "node_modules/jsonld-signatures": { - "version": "11.3.0", - "resolved": "https://registry.npmjs.org/jsonld-signatures/-/jsonld-signatures-11.3.0.tgz", - "integrity": "sha512-+KaA2uWhnQ6eYDYqFoopYS8PcmbAdMuM0RFuycZw5Vh0gZiuMHt5/nCLh/p2x5blPGREntTHCQtI/1TtZ1+CUg==", + "version": "11.3.2", + "resolved": "https://registry.npmjs.org/jsonld-signatures/-/jsonld-signatures-11.3.2.tgz", + "integrity": "sha512-nwmhZLFbg/hc+0ZTLxa76T8Ll4I+V3b8XQvNevuaUS7ocnPIBmtqWmmfLjbH8hnxkkh7EospZYQvrOIUzVvJqw==", + "license": "BSD-3-Clause", "dependencies": { "@digitalbazaar/security-context": "^1.0.0", "jsonld": "^8.0.0", @@ -4244,9 +4265,10 @@ } }, "node_modules/jsonld-signatures-merkleproof2019": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/jsonld-signatures-merkleproof2019/-/jsonld-signatures-merkleproof2019-2.7.2.tgz", - "integrity": "sha512-uVMJE09bFAskTJSC1xfFpCU/7FnIQBGMTYsL3VjawRVqu/OWGUoPWeGjfS3A14sHTMvRII5B4FV5hH+YiYYpUg==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/jsonld-signatures-merkleproof2019/-/jsonld-signatures-merkleproof2019-2.11.0.tgz", + "integrity": "sha512-4GAt7Uj5iYRJIQ5APV+v2yAuutPKtTQ+OPFCvJUsuE6k2IPsPQuuj+4xvYaK99UG3epNZm0Ii4hWtKep+qZtEg==", + "license": "MIT", "dependencies": { "@blockcerts/explorer-lookup": "^1.5.2", "@blockcerts/schemas": "^3.6.4", @@ -4270,6 +4292,7 @@ "version": "3.0.10", "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.10.tgz", "integrity": "sha512-7d0s06rR9rYaIWHkpfLIFICM/tkSVdoPC9qYAQRpxn9DdKNWNsKC0uk++akckyLq16Tx2WIinnZ6WRriAt6njQ==", + "license": "MIT", "dependencies": { "safe-buffer": "^5.0.1" } @@ -4278,6 +4301,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "license": "MIT", "dependencies": { "base-x": "^3.0.2" } @@ -4412,22 +4436,26 @@ "node_modules/lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==" + "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==", + "license": "MIT" }, "node_modules/lodash.flatten": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==" + "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==", + "license": "MIT" }, "node_modules/lodash.invert": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.invert/-/lodash.invert-4.3.0.tgz", - "integrity": "sha512-3CJmOxN5y47rd+g5XjdZNcq2SorJkvlSqBwPomT094p6LZ4p7b5bUoRzYYMjwsTGWTW77z/dFZlCzeVQxBrZVg==" + "integrity": "sha512-3CJmOxN5y47rd+g5XjdZNcq2SorJkvlSqBwPomT094p6LZ4p7b5bUoRzYYMjwsTGWTW77z/dFZlCzeVQxBrZVg==", + "license": "MIT" }, "node_modules/lodash.invertby": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/lodash.invertby/-/lodash.invertby-4.7.0.tgz", - "integrity": "sha512-g8De/tO/+KBzNq06BX1OCOrker+Mfvx3rkmice8m5QJNQzHeFDmBJt5S59K0bXRjW0DvBsueGl6vUPtpxBilcA==" + "integrity": "sha512-g8De/tO/+KBzNq06BX1OCOrker+Mfvx3rkmice8m5QJNQzHeFDmBJt5S59K0bXRjW0DvBsueGl6vUPtpxBilcA==", + "license": "MIT" }, "node_modules/lodash.memoize": { "version": "4.1.2", @@ -4618,6 +4646,7 @@ "version": "0.1.26", "resolved": "https://registry.npmjs.org/msgpack-lite/-/msgpack-lite-0.1.26.tgz", "integrity": "sha512-SZ2IxeqZ1oRFGo0xFGbvBJWMp3yLIY9rlIJyxy8CGrwZn1f0ZK4r6jV/AM1r0FZMDUkWkglOk/eeKIL9g77Nxw==", + "license": "MIT", "dependencies": { "event-lite": "^0.1.1", "ieee754": "^1.1.8", @@ -4633,6 +4662,7 @@ "resolved": "https://registry.npmjs.org/multibase/-/multibase-0.6.1.tgz", "integrity": "sha512-pFfAwyTjbbQgNc3G7D48JkJxWtoJoBMaR4xQUOuB8RnCgRqaYmWNFeJTTvrJ2w51bjLq2zTby6Rqj9TQ9elSUw==", "deprecated": "This module has been superseded by the multiformats module", + "license": "MIT", "dependencies": { "base-x": "^3.0.8", "buffer": "^5.5.0" @@ -4642,6 +4672,7 @@ "version": "3.0.10", "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.10.tgz", "integrity": "sha512-7d0s06rR9rYaIWHkpfLIFICM/tkSVdoPC9qYAQRpxn9DdKNWNsKC0uk++akckyLq16Tx2WIinnZ6WRriAt6njQ==", + "license": "MIT", "dependencies": { "safe-buffer": "^5.0.1" } @@ -4664,6 +4695,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" @@ -4755,6 +4787,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/node-inspect-extracted/-/node-inspect-extracted-3.0.0.tgz", "integrity": "sha512-HXxuG4/aAcWpij4Y2olTbEVbMhajugjS0Mg3ATVhPIdW1P30/8lZS2mPGLsaqqIw5jdCsYrwqYVhfSYz5jGjKA==", + "license": "MIT", "engines": { "node": ">=16" } @@ -4781,6 +4814,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/nofilter/-/nofilter-1.0.4.tgz", "integrity": "sha512-N8lidFp+fCz+TD51+haYdbDGrcBWwuHX40F5+z0qkUjMJ5Tp+rdSuAkMJ9N9eoolDlEVTf6u5icM+cNKkKW2mA==", + "license": "MIT", "engines": { "node": ">=8" } @@ -5742,7 +5776,8 @@ "node_modules/typeforce": { "version": "1.18.0", "resolved": "https://registry.npmjs.org/typeforce/-/typeforce-1.18.0.tgz", - "integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g==" + "integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g==", + "license": "MIT" }, "node_modules/typescript": { "version": "5.3.3", @@ -5813,7 +5848,8 @@ "node_modules/utf8": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/utf8/-/utf8-3.0.0.tgz", - "integrity": "sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==" + "integrity": "sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==", + "license": "MIT" }, "node_modules/util-deprecate": { "version": "1.0.2", @@ -5857,6 +5893,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/varuint-bitcoin/-/varuint-bitcoin-1.1.2.tgz", "integrity": "sha512-4EVb+w4rx+YfVM32HQX42AbbT7/1f5zwAYhIujKXKk8NQK+JfRVl3pqT3hjNn/L+RstigmGGKVwHA/P0wgITZw==", + "license": "MIT", "dependencies": { "safe-buffer": "^5.1.1" } @@ -5962,6 +5999,7 @@ "version": "1.8.0", "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", "integrity": "sha512-58Im/U0mlVBLM38NdZjHyhuMtCqa61469k2YP/AaPbvCoV9aQGUpbJBj1QRm2ytRiVQBD/fsw7L2bJGDVQswBA==", + "license": "MIT", "engines": { "node": ">=0.4.0" } diff --git a/package.json b/package.json index 1269aaa..f22346b 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ }, "homepage": "https://github.com/blockchain-certificates/cvjs-docker#readme", "dependencies": { - "@blockcerts/cert-verifier-js": "^6.22.1", + "@blockcerts/cert-verifier-js": "^6.25.0", "body-parser": "^1.20.2", "express": "^4.18.2" }, diff --git a/src/helpers/init-cert-verifier-js.ts b/src/helpers/init-cert-verifier-js.ts index b46c2e0..6ed34af 100644 --- a/src/helpers/init-cert-verifier-js.ts +++ b/src/helpers/init-cert-verifier-js.ts @@ -44,7 +44,7 @@ export default async function initCertVerifierJs (req: Request<{}, {}, APIPaylo message: e.message, error: JSON.stringify(e.stack, null, 2), status: VERIFICATION_STATUSES.FAILURE, - statusCode: 200 + statusCode: 422 } } } diff --git a/test/assertions/failing-signature-cert-verified-steps.json b/test/assertions/failing-signature-cert-verified-steps.json index ed7c3a7..a4a09e0 100644 --- a/test/assertions/failing-signature-cert-verified-steps.json +++ b/test/assertions/failing-signature-cert-verified-steps.json @@ -8,6 +8,12 @@ { "proofType": "MerkleProof2019", "subSteps": [ + { + "code": "assertProofValidity", + "label": "Asserting proof purpose", + "parentStep": "proofVerification", + "status": "success" + }, { "code": "getTransactionId", "status": "success", diff --git a/test/assertions/invalid-verifiable-presentation-verified-steps.json b/test/assertions/invalid-verifiable-presentation-verified-steps.json index b539fdc..2be1daf 100644 --- a/test/assertions/invalid-verifiable-presentation-verified-steps.json +++ b/test/assertions/invalid-verifiable-presentation-verified-steps.json @@ -1 +1,77 @@ -[{"code": "formatValidation", "isLast": false, "label": "Format validation", "labelPending": "Validating format", "status": "success", "subSteps": [{"code": "validateDateFormat", "label": "Validating date format", "parentStep": "formatValidation", "status": "success"}]}, {"code": "proofVerification", "isLast": false, "label": "Proof Verification", "labelPending": "Verifying Proof", "status": "success", "subSteps": [], "suites": [{"proofType": "MerkleProof2019", "subSteps": [{"code": "computeLocalHash", "label": "Computing local hash", "parentStep": "proofVerification", "status": "success"}, {"code": "compareHashes", "label": "Comparing hashes", "parentStep": "proofVerification", "status": "success"}, {"code": "checkReceipt", "label": "Checking Receipt", "parentStep": "proofVerification", "status": "success"}]}]}, {"code": "statusCheck", "isLast": true, "label": "Status check", "labelPending": "Checking record status", "status": "success", "subSteps": [{"code": "checkRevokedStatus", "label": "Checking Revoked Status", "parentStep": "statusCheck", "status": "success"}, {"code": "checkExpiresDate", "label": "Checking Expiration Date", "parentStep": "statusCheck", "status": "success"}]}] +[ + { + "code": "formatValidation", + "isLast": false, + "label": "Format validation", + "labelPending": "Validating format", + "status": "success", + "subSteps": [ + { + "code": "validateDateFormat", + "label": "Validating date format", + "parentStep": "formatValidation", + "status": "success" + } + ] + }, + { + "code": "proofVerification", + "isLast": false, + "label": "Proof Verification", + "labelPending": "Verifying Proof", + "status": "success", + "subSteps": [], + "suites": [ + { + "proofType": "MerkleProof2019", + "subSteps": [ + { + "code": "assertProofValidity", + "label": "Asserting proof purpose", + "parentStep": "proofVerification", + "status": "success" + }, + { + "code": "computeLocalHash", + "label": "Computing local hash", + "parentStep": "proofVerification", + "status": "success" + }, + { + "code": "compareHashes", + "label": "Comparing hashes", + "parentStep": "proofVerification", + "status": "success" + }, + { + "code": "checkReceipt", + "label": "Checking Receipt", + "parentStep": "proofVerification", + "status": "success" + } + ] + } + ] + }, + { + "code": "statusCheck", + "isLast": true, + "label": "Status check", + "labelPending": "Checking record status", + "status": "success", + "subSteps": [ + { + "code": "checkRevokedStatus", + "label": "Checking Revoked Status", + "parentStep": "statusCheck", + "status": "success" + }, + { + "code": "checkExpiresDate", + "label": "Checking Expiration Date", + "parentStep": "statusCheck", + "status": "success" + } + ] + } +] diff --git a/test/assertions/multiple-signature-cert-verified-steps.json b/test/assertions/multiple-signature-cert-verified-steps.json index b67e442..954e143 100644 --- a/test/assertions/multiple-signature-cert-verified-steps.json +++ b/test/assertions/multiple-signature-cert-verified-steps.json @@ -25,6 +25,12 @@ { "proofType": "MerkleProof2019", "subSteps": [ + { + "code": "assertProofValidity", + "label": "Asserting proof purpose", + "parentStep": "proofVerification", + "status": "success" + }, { "code": "computeLocalHash", "status": "success", diff --git a/test/assertions/single-signature-cert-verified-steps.json b/test/assertions/single-signature-cert-verified-steps.json index 0864083..44a5270 100644 --- a/test/assertions/single-signature-cert-verified-steps.json +++ b/test/assertions/single-signature-cert-verified-steps.json @@ -10,6 +10,12 @@ { "proofType": "MerkleProof2019", "subSteps": [ + { + "code": "assertProofValidity", + "label": "Asserting proof purpose", + "parentStep": "proofVerification", + "status": "success" + }, { "code": "getTransactionId", "label": "Getting transaction ID", diff --git a/test/assertions/valid-verifiable-presentation-verified-steps.json b/test/assertions/valid-verifiable-presentation-verified-steps.json index b539fdc..2be1daf 100644 --- a/test/assertions/valid-verifiable-presentation-verified-steps.json +++ b/test/assertions/valid-verifiable-presentation-verified-steps.json @@ -1 +1,77 @@ -[{"code": "formatValidation", "isLast": false, "label": "Format validation", "labelPending": "Validating format", "status": "success", "subSteps": [{"code": "validateDateFormat", "label": "Validating date format", "parentStep": "formatValidation", "status": "success"}]}, {"code": "proofVerification", "isLast": false, "label": "Proof Verification", "labelPending": "Verifying Proof", "status": "success", "subSteps": [], "suites": [{"proofType": "MerkleProof2019", "subSteps": [{"code": "computeLocalHash", "label": "Computing local hash", "parentStep": "proofVerification", "status": "success"}, {"code": "compareHashes", "label": "Comparing hashes", "parentStep": "proofVerification", "status": "success"}, {"code": "checkReceipt", "label": "Checking Receipt", "parentStep": "proofVerification", "status": "success"}]}]}, {"code": "statusCheck", "isLast": true, "label": "Status check", "labelPending": "Checking record status", "status": "success", "subSteps": [{"code": "checkRevokedStatus", "label": "Checking Revoked Status", "parentStep": "statusCheck", "status": "success"}, {"code": "checkExpiresDate", "label": "Checking Expiration Date", "parentStep": "statusCheck", "status": "success"}]}] +[ + { + "code": "formatValidation", + "isLast": false, + "label": "Format validation", + "labelPending": "Validating format", + "status": "success", + "subSteps": [ + { + "code": "validateDateFormat", + "label": "Validating date format", + "parentStep": "formatValidation", + "status": "success" + } + ] + }, + { + "code": "proofVerification", + "isLast": false, + "label": "Proof Verification", + "labelPending": "Verifying Proof", + "status": "success", + "subSteps": [], + "suites": [ + { + "proofType": "MerkleProof2019", + "subSteps": [ + { + "code": "assertProofValidity", + "label": "Asserting proof purpose", + "parentStep": "proofVerification", + "status": "success" + }, + { + "code": "computeLocalHash", + "label": "Computing local hash", + "parentStep": "proofVerification", + "status": "success" + }, + { + "code": "compareHashes", + "label": "Comparing hashes", + "parentStep": "proofVerification", + "status": "success" + }, + { + "code": "checkReceipt", + "label": "Checking Receipt", + "parentStep": "proofVerification", + "status": "success" + } + ] + } + ] + }, + { + "code": "statusCheck", + "isLast": true, + "label": "Status check", + "labelPending": "Checking record status", + "status": "success", + "subSteps": [ + { + "code": "checkRevokedStatus", + "label": "Checking Revoked Status", + "parentStep": "statusCheck", + "status": "success" + }, + { + "code": "checkExpiresDate", + "label": "Checking Expiration Date", + "parentStep": "statusCheck", + "status": "success" + } + ] + } +] diff --git a/test/contract/basic-verification.test.docker.ts b/test/contract/basic-verification.test.docker.ts index 73c5154..01cd7bb 100644 --- a/test/contract/basic-verification.test.docker.ts +++ b/test/contract/basic-verification.test.docker.ts @@ -19,6 +19,7 @@ describe('basic verification docker endpoint test suite', function () { expect(output).toEqual({ checks: [ + "assertProofValidity", "getTransactionId", "computeLocalHash", "fetchRemoteHash", @@ -56,6 +57,7 @@ describe('basic verification docker endpoint test suite', function () { expect(output).toEqual({ checks: [ + "assertProofValidity", "getTransactionId", "computeLocalHash", "fetchRemoteHash" @@ -81,6 +83,7 @@ describe('basic verification docker endpoint test suite', function () { expect(output).toEqual({ checks: [ + "assertProofValidity", "computeLocalHash", "compareHashes", "checkReceipt", @@ -113,6 +116,7 @@ describe('basic verification docker endpoint test suite', function () { expect(output).toEqual({ checks: [ + "assertProofValidity", "computeLocalHash", "compareHashes", "checkReceipt", diff --git a/test/contract/verbose-verification.test.docker.ts b/test/contract/verbose-verification.test.docker.ts index 1978bc8..fa7327c 100644 --- a/test/contract/verbose-verification.test.docker.ts +++ b/test/contract/verbose-verification.test.docker.ts @@ -80,6 +80,7 @@ describe('verbose verification docker endpoint test suite', function () { it('should expose the checks array to conform with VC-API', function () { expect(output.checks).toEqual([ + "assertProofValidity", "getTransactionId", "computeLocalHash", "fetchRemoteHash", @@ -167,6 +168,7 @@ describe('verbose verification docker endpoint test suite', function () { it('should expose the checks array to conform with VC-API', function () { expect(output.checks).toEqual([ + "assertProofValidity", "getTransactionId", "computeLocalHash", "fetchRemoteHash" diff --git a/test/contract/verbose-verification.verifiable-presentation.test.docker.ts b/test/contract/verbose-verification.verifiable-presentation.test.docker.ts index a949967..9b29f98 100644 --- a/test/contract/verbose-verification.verifiable-presentation.test.docker.ts +++ b/test/contract/verbose-verification.verifiable-presentation.test.docker.ts @@ -76,6 +76,7 @@ describe('verbose verification docker endpoint test suite', function () { it('should expose the checks array to conform with VC-API', function () { expect(output.checks).toEqual([ + "assertProofValidity", "computeLocalHash", "compareHashes", "checkReceipt", @@ -155,6 +156,7 @@ describe('verbose verification docker endpoint test suite', function () { it('should expose the checks array to conform with VC-API', function () { expect(output.checks).toEqual([ + "assertProofValidity", "computeLocalHash", "compareHashes", "checkReceipt",