From 4ded5f385f0fc0fbfd1fb0d194292920c6ff5b25 Mon Sep 17 00:00:00 2001 From: Dimasik Kolezhniuk Date: Fri, 6 Sep 2024 16:40:49 +0200 Subject: [PATCH] Feature/auth-update (#97) * Update JS-sdk * 1.5.0 --- package-lock.json | 218 +++++++++++++++++++++++-------- package.json | 10 +- src/auth/auth.ts | 2 +- src/circuits/atomicMtpV2.ts | 5 +- src/circuits/atomicSigV2.ts | 5 +- src/circuits/atomicV3.ts | 10 +- src/circuits/linkedMultiQuery.ts | 8 +- src/circuits/query.ts | 11 +- src/circuits/registry.ts | 4 +- test/atomicV3.test.ts | 20 +-- test/auth.test.ts | 4 +- test/linked-proofs.test.ts | 2 +- 12 files changed, 202 insertions(+), 97 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4bd4114..70c85e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,20 +1,20 @@ { "name": "@iden3/js-iden3-auth", - "version": "1.4.0", + "version": "1.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@iden3/js-iden3-auth", - "version": "1.4.0", + "version": "1.5.0", "license": "MIT or Apache-2.0", "dependencies": { - "@0xpolygonid/js-sdk": "1.16.1", + "@0xpolygonid/js-sdk": "1.18.3", "@iden3/js-crypto": "1.1.0", "@iden3/js-iden3-core": "1.4.0", - "@iden3/js-jsonld-merklization": "1.3.1", - "@iden3/js-jwz": "1.6.0", - "@iden3/js-merkletree": "1.2.0", + "@iden3/js-jsonld-merklization": "1.4.1", + "@iden3/js-jwz": "1.7.1", + "@iden3/js-merkletree": "1.3.1", "did-resolver": "^4.1.0", "ethers": "^5.4.0", "tslib": "^2.6.2", @@ -47,16 +47,17 @@ } }, "node_modules/@0xpolygonid/js-sdk": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/@0xpolygonid/js-sdk/-/js-sdk-1.16.1.tgz", - "integrity": "sha512-s5Nz3ok3sRIM93YRbUmlRharG4Vb7WJEFF8IRRmmOy9zAhtKLQE2vziXZF9ByedyBFWprO/5/Lltb//mCGASJw==", + "version": "1.18.3", + "resolved": "https://registry.npmjs.org/@0xpolygonid/js-sdk/-/js-sdk-1.18.3.tgz", + "integrity": "sha512-D/4ceu5zAv9KMz2qgVykQtMk2SbgxTNhdbZbFL2Ry+QW/xRVrVtXWY4fySlb6ZMNpkfOgtRSGt9hSgLQWCDz9Q==", + "license": "MIT or Apache-2.0", "dependencies": { "@noble/curves": "^1.4.0", "ajv": "8.12.0", "ajv-formats": "2.1.1", "did-jwt": "8.0.4", "did-resolver": "4.1.0", - "ethers": "6.8.0", + "ethers": "^6.13.1", "idb-keyval": "6.2.0", "js-sha3": "0.9.3", "jsonld": "8.3.1", @@ -69,9 +70,9 @@ "peerDependencies": { "@iden3/js-crypto": "1.1.0", "@iden3/js-iden3-core": "1.4.0", - "@iden3/js-jsonld-merklization": "1.3.1", - "@iden3/js-jwz": "1.6.0", - "@iden3/js-merkletree": "1.2.0", + "@iden3/js-jsonld-merklization": "1.4.1", + "@iden3/js-jwz": "1.7.1", + "@iden3/js-merkletree": "1.3.1", "ffjavascript": "0.3.0", "rfc4648": "1.5.3", "snarkjs": "0.7.4" @@ -81,6 +82,7 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", + "license": "MIT", "engines": { "node": ">= 16" }, @@ -91,17 +93,19 @@ "node_modules/@0xpolygonid/js-sdk/node_modules/@types/node": { "version": "18.15.13", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.13.tgz", - "integrity": "sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q==" + "integrity": "sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q==", + "license": "MIT" }, "node_modules/@0xpolygonid/js-sdk/node_modules/aes-js": { "version": "4.0.0-beta.5", "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-4.0.0-beta.5.tgz", - "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==" + "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==", + "license": "MIT" }, "node_modules/@0xpolygonid/js-sdk/node_modules/ethers": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.8.0.tgz", - "integrity": "sha512-zrFbmQRlraM+cU5mE4CZTLBurZTs2gdp2ld0nG/f3ecBK+x6lZ69KSxBqZ4NjclxwfTxl5LeNufcBbMsTdY53Q==", + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.2.tgz", + "integrity": "sha512-9VkriTTed+/27BGuY1s0hf441kqwHJ1wtN2edksEtiRvXx+soxRX3iSXTfFqq2+YwrOqbDoTHjIhQnjJRlzKmg==", "funding": [ { "type": "individual", @@ -112,14 +116,15 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { - "@adraffy/ens-normalize": "1.10.0", + "@adraffy/ens-normalize": "1.10.1", "@noble/curves": "1.2.0", "@noble/hashes": "1.3.2", "@types/node": "18.15.13", "aes-js": "4.0.0-beta.5", "tslib": "2.4.0", - "ws": "8.5.0" + "ws": "8.17.1" }, "engines": { "node": ">=14.0.0" @@ -129,6 +134,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", "integrity": "sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==", + "license": "MIT", "dependencies": { "@noble/hashes": "1.3.2" }, @@ -147,18 +153,20 @@ "node_modules/@0xpolygonid/js-sdk/node_modules/tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "license": "0BSD" }, "node_modules/@0xpolygonid/js-sdk/node_modules/ws": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz", - "integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "license": "MIT", "engines": { "node": ">=10.0.0" }, "peerDependencies": { "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "utf-8-validate": ">=5.0.2" }, "peerDependenciesMeta": { "bufferutil": { @@ -179,9 +187,10 @@ } }, "node_modules/@adraffy/ens-normalize": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz", - "integrity": "sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==" + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz", + "integrity": "sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw==", + "license": "MIT" }, "node_modules/@ampproject/remapping": { "version": "2.3.0", @@ -1089,6 +1098,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abi": "^5.7.0", "@ethersproject/abstract-provider": "^5.7.0", @@ -1142,6 +1152,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abstract-signer": "^5.7.0", "@ethersproject/basex": "^5.7.0", @@ -1171,6 +1182,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abstract-signer": "^5.7.0", "@ethersproject/address": "^5.7.0", @@ -1258,6 +1270,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0", "@ethersproject/sha2": "^5.7.0" @@ -1413,6 +1426,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bignumber": "^5.7.0", "@ethersproject/bytes": "^5.7.0", @@ -1482,6 +1496,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bignumber": "^5.7.0", "@ethersproject/constants": "^5.7.0", @@ -1502,6 +1517,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abstract-provider": "^5.7.0", "@ethersproject/abstract-signer": "^5.7.0", @@ -1556,6 +1572,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/bytes": "^5.7.0", "@ethersproject/hash": "^5.7.0", @@ -1609,12 +1626,14 @@ "version": "0.0.2", "resolved": "https://registry.npmjs.org/@iden3/bigarray/-/bigarray-0.0.2.tgz", "integrity": "sha512-Xzdyxqm1bOFF6pdIsiHLLl3HkSLjbhqJHVyqaTxXt3RqXBEnmsUmEW47H7VOi/ak7TdkRpNkxjyK5Zbkm+y52g==", + "license": "GPL-3.0", "peer": true }, "node_modules/@iden3/binfileutils": { "version": "0.0.12", "resolved": "https://registry.npmjs.org/@iden3/binfileutils/-/binfileutils-0.0.12.tgz", "integrity": "sha512-naAmzuDufRIcoNfQ1d99d7hGHufLA3wZSibtr4dMe6ZeiOPV1KwOZWTJ1YVz4HbaWlpDuzVU72dS4ATQS4PXBQ==", + "license": "GPL-3.0", "peer": true, "dependencies": { "fastfile": "0.0.20", @@ -1649,10 +1668,11 @@ } }, "node_modules/@iden3/js-jsonld-merklization": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@iden3/js-jsonld-merklization/-/js-jsonld-merklization-1.3.1.tgz", - "integrity": "sha512-4h4D+KoTn17xkkfTGeVKQ/+d0Y+ALJ3inXsGTxly6EvcRtuiLjoJXmI6SFBd6VeRktKKSaFYosgPDc7y64haTg==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@iden3/js-jsonld-merklization/-/js-jsonld-merklization-1.4.1.tgz", + "integrity": "sha512-YQmCMy1JPDf/d2pHw+e3RXhR+K1RtSRPZl0IWM/cEuvIoo4qnnagoMVz0BnKZrcKlf2htGdg//mf6ks99LMYlw==", "hasInstallScript": true, + "license": "MIT or Apache-2.0", "dependencies": { "@js-temporal/polyfill": "0.4.4", "jsonld": "8.3.2", @@ -1661,18 +1681,20 @@ }, "peerDependencies": { "@iden3/js-crypto": "1.1.0", - "@iden3/js-merkletree": "1.2.0" + "@iden3/js-merkletree": "1.3.1" } }, "node_modules/@iden3/js-jsonld-merklization/node_modules/canonicalize": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/canonicalize/-/canonicalize-1.0.8.tgz", - "integrity": "sha512-0CNTVCLZggSh7bc5VkX5WWPWO+cyZbNd07IHIsSXLia/eAq+r836hgk+8BKoEh7949Mda87VUOitx5OddVj64A==" + "integrity": "sha512-0CNTVCLZggSh7bc5VkX5WWPWO+cyZbNd07IHIsSXLia/eAq+r836hgk+8BKoEh7949Mda87VUOitx5OddVj64A==", + "license": "Apache-2.0" }, "node_modules/@iden3/js-jsonld-merklization/node_modules/jsonld": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/jsonld/-/jsonld-8.3.2.tgz", "integrity": "sha512-MwBbq95szLwt8eVQ1Bcfwmgju/Y5P2GdtlHE2ncyfuYjIdEhluUVyj1eudacf1mOkWIoS9GpDBTECqhmq7EOaA==", + "license": "BSD-3-Clause", "dependencies": { "@digitalbazaar/http-client": "^3.4.1", "canonicalize": "^1.0.1", @@ -1687,6 +1709,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -1697,25 +1720,28 @@ "node_modules/@iden3/js-jsonld-merklization/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" }, "node_modules/@iden3/js-jwz": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@iden3/js-jwz/-/js-jwz-1.6.0.tgz", - "integrity": "sha512-OQWlgTMHN3+Fwoiuqp7i4lL7ofpcrVl5p0dsFCrsCVHjydOq1YMPQBrvttZRwN5hL3y28P1Yzq0yXDwcDqDwzQ==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@iden3/js-jwz/-/js-jwz-1.7.1.tgz", + "integrity": "sha512-zIF3r5b+E2D8dD9obLjJPqzw4uChtNPqHz/I8R9x2BBGeS2ctOmsGBnHCZ+s5zkFVrCuPiR8oj8igeIdGb1SoQ==", + "license": "AGPL-3.0", "peerDependencies": { "@iden3/js-crypto": "1.1.0", "@iden3/js-iden3-core": "1.4.0", - "@iden3/js-merkletree": "1.2.0", + "@iden3/js-merkletree": "1.3.1", "ffjavascript": "0.3.0", "rfc4648": "1.5.3", "snarkjs": "0.7.4" } }, "node_modules/@iden3/js-merkletree": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@iden3/js-merkletree/-/js-merkletree-1.2.0.tgz", - "integrity": "sha512-tM6jj1v/41qQ6V2K6CTrv0KsNHQ2y/O6Q9RSB1SdN2LTu+cgA9FnD2Qr3whzSvwgUs7X3SjuJgb9OTgs0lDemQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@iden3/js-merkletree/-/js-merkletree-1.3.1.tgz", + "integrity": "sha512-sP0ezoDutKtzYolbeGKwg/iYYcoNSZwigLPuwca2Fmh/E2NYj3LDBlMQixpGNZnkCA+1zLjmKzZHu58xSweoEA==", + "license": "MIT or Apache-2.0", "peerDependencies": { "@iden3/js-crypto": "1.1.0", "idb-keyval": "^6.2.0" @@ -2182,6 +2208,7 @@ "version": "0.4.4", "resolved": "https://registry.npmjs.org/@js-temporal/polyfill/-/polyfill-0.4.4.tgz", "integrity": "sha512-2X6bvghJ/JAoZO52lbgyAPFj8uCflhTo2g7nkFzEQdXd/D8rEeD4HtmTEpmtGCva260fcd66YNXBOYdnmHqSOg==", + "license": "ISC", "dependencies": { "jsbi": "^4.3.0", "tslib": "^2.4.1" @@ -2703,7 +2730,8 @@ "node_modules/@yarnpkg/lockfile": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", - "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==" + "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==", + "license": "BSD-2-Clause" }, "node_modules/abort-controller": { "version": "3.0.0", @@ -2749,7 +2777,8 @@ "node_modules/aes-js": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", - "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==" + "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==", + "license": "MIT" }, "node_modules/ajv": { "version": "8.12.0", @@ -2876,15 +2905,17 @@ } }, "node_modules/async": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", - "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==", + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "license": "MIT", "peer": true }, "node_modules/at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "license": "ISC", "engines": { "node": ">= 4.0.0" } @@ -2905,6 +2936,7 @@ "version": "1.6.6", "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.6.tgz", "integrity": "sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==", + "license": "Apache-2.0", "peer": true }, "node_modules/babel-jest": { @@ -3045,7 +3077,8 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/bech32": { "version": "1.1.4", @@ -3056,6 +3089,7 @@ "version": "7.1.0", "resolved": "https://registry.npmjs.org/bfj/-/bfj-7.1.0.tgz", "integrity": "sha512-I6MMLkn+anzNdCUp9hMRyui1HaNEUCco50lxbvNS4+EyXg8lN3nJ48PjPWtbH8UVS9CuMoaKE9U2V3l29DaRQw==", + "license": "MIT", "peer": true, "dependencies": { "bluebird": "^3.7.2", @@ -3084,6 +3118,7 @@ "version": "2.4.0", "resolved": "https://registry.npmjs.org/blake2b-wasm/-/blake2b-wasm-2.4.0.tgz", "integrity": "sha512-S1kwmW2ZhZFFFOghcx73+ZajEfKBqhP82JMssxtLVMxlaPea1p9uoLiUZ5WYyHn0KddwbLc+0vh4wR0KBNoT5w==", + "license": "MIT", "peer": true, "dependencies": { "b4a": "^1.0.1", @@ -3094,6 +3129,7 @@ "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "license": "MIT", "peer": true }, "node_modules/bn.js": { @@ -3197,6 +3233,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.2.1" @@ -3212,6 +3249,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -3297,6 +3335,7 @@ "version": "11.2.3", "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.2.3.tgz", "integrity": "sha512-+67P1GkJRaxQD6PKK0Et9DhwQB+vGg3PM5+aavopCpZT1lj9jeqfvpgTLAWErNj8qApkkmXlu/Ug74kmhagkXg==", + "license": "MIT", "peer": true }, "node_modules/chokidar": { @@ -3353,6 +3392,7 @@ "version": "0.1.25", "resolved": "https://registry.npmjs.org/circom_runtime/-/circom_runtime-0.1.25.tgz", "integrity": "sha512-xBGsBFF5Uv6AKvbpgExYqpHfmfawH2HKe+LyjfKSRevqEV8u63i9KGHVIILsbJNW+0c5bm/66f0PUYQ7qZSkJA==", + "license": "Apache-2.0", "peer": true, "dependencies": { "ffjavascript": "0.3.0" @@ -3664,6 +3704,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -3752,6 +3793,7 @@ "version": "3.1.10", "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "license": "Apache-2.0", "peer": true, "dependencies": { "jake": "^10.8.5" @@ -3819,6 +3861,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "license": "MIT", "dependencies": { "get-intrinsic": "^1.2.4" }, @@ -3830,6 +3873,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", "engines": { "node": ">= 0.4" } @@ -3859,6 +3903,7 @@ "version": "1.14.3", "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "license": "BSD-2-Clause", "peer": true, "dependencies": { "esprima": "^4.0.1", @@ -3881,6 +3926,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "license": "BSD-2-Clause", "peer": true, "bin": { "esparse": "bin/esparse.js", @@ -3894,6 +3940,7 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "license": "MIT", "peer": true, "dependencies": { "prelude-ls": "~1.1.2", @@ -3907,6 +3954,7 @@ "version": "0.8.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "license": "MIT", "peer": true, "dependencies": { "deep-is": "~0.1.3", @@ -3933,6 +3981,7 @@ "version": "0.3.2", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "license": "MIT", "peer": true, "dependencies": { "prelude-ls": "~1.1.2" @@ -4209,6 +4258,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abi": "5.7.0", "@ethersproject/abstract-provider": "5.7.0", @@ -4254,6 +4304,7 @@ "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "license": "MIT", "engines": { "node": ">=0.8.x" } @@ -4360,6 +4411,7 @@ "version": "0.0.20", "resolved": "https://registry.npmjs.org/fastfile/-/fastfile-0.0.20.tgz", "integrity": "sha512-r5ZDbgImvVWCP0lA/cGNgQcZqR+aYdFx3u+CtJqUE510pBUVGMn4ulL/iRTI4tACTYsNJ736uzFxEBXesPAktA==", + "license": "GPL-3.0", "peer": true }, "node_modules/fastq": { @@ -4406,6 +4458,7 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.3.0.tgz", "integrity": "sha512-l7sR5kmU3gRwDy8g0Z2tYBXy5ttmafRPFOqY7S6af5cq51JqJWt5eQ/lSR/rs2wQNbDYaYlQr5O+OSUf/oMLoQ==", + "license": "GPL-3.0", "peer": true, "dependencies": { "wasmbuilder": "0.0.16", @@ -4429,6 +4482,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "license": "Apache-2.0", "peer": true, "dependencies": { "minimatch": "^5.0.1" @@ -4438,6 +4492,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "license": "MIT", "peer": true, "dependencies": { "balanced-match": "^1.0.0" @@ -4447,6 +4502,7 @@ "version": "5.1.6", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "license": "ISC", "peer": true, "dependencies": { "brace-expansion": "^2.0.1" @@ -4498,6 +4554,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", + "license": "Apache-2.0", "dependencies": { "micromatch": "^4.0.2" } @@ -4596,6 +4653,7 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2", @@ -4701,6 +4759,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "license": "MIT", "dependencies": { "get-intrinsic": "^1.1.3" }, @@ -4731,6 +4790,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "license": "MIT", "dependencies": { "es-define-property": "^1.0.0" }, @@ -4742,6 +4802,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -4753,6 +4814,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -4794,6 +4856,7 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", "integrity": "sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ==", + "license": "MIT", "peer": true, "engines": { "node": ">= 6.0.0" @@ -4818,6 +4881,7 @@ "version": "6.2.1", "resolved": "https://registry.npmjs.org/idb-keyval/-/idb-keyval-6.2.1.tgz", "integrity": "sha512-8Sb3veuYCyrZL+VBt9LJfZjLUPWVvqn8tG28VqYNFCo43KHcKuq+b4EiXGeuaLAQWL2YmyDgMp2aSpH9JHsEQg==", + "license": "Apache-2.0", "peer": true }, "node_modules/ieee754": { @@ -4837,7 +4901,8 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "BSD-3-Clause" }, "node_modules/ignore": { "version": "5.3.1", @@ -4940,6 +5005,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "license": "MIT", "bin": { "is-docker": "cli.js" }, @@ -5022,6 +5088,7 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "license": "MIT", "dependencies": { "is-docker": "^2.0.0" }, @@ -5032,7 +5099,8 @@ "node_modules/isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", @@ -5106,9 +5174,10 @@ } }, "node_modules/jake": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.1.tgz", - "integrity": "sha512-61btcOHNnLnsOdtLgA5efqQWjnSi/vow5HbI7HMdKKWqvrKR1bLK3BPlJn9gcSaP2ewuamUSMB5XEy76KUIS2w==", + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", + "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", + "license": "Apache-2.0", "peer": true, "dependencies": { "async": "^3.2.3", @@ -5704,7 +5773,8 @@ "node_modules/jsbi": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/jsbi/-/jsbi-4.3.0.tgz", - "integrity": "sha512-SnZNcinB4RIcnEyZqFPdGPVgrg2AcnykiBy0sHVJQKHYeaLUvi3Exj+iaPpLnFVkDPZIV4U0yvgC9/R4uEAZ9g==" + "integrity": "sha512-SnZNcinB4RIcnEyZqFPdGPVgrg2AcnykiBy0sHVJQKHYeaLUvi3Exj+iaPpLnFVkDPZIV4U0yvgC9/R4uEAZ9g==", + "license": "Apache-2.0" }, "node_modules/jsesc": { "version": "2.5.2", @@ -5739,6 +5809,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.1.1.tgz", "integrity": "sha512-SU/971Kt5qVQfJpyDveVhQ/vya+5hvrjClFOcr8c0Fq5aODJjMwutrOfCU+eCnVD5gpx1Q3fEqkyom77zH1iIg==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.5", "isarray": "^2.0.5", @@ -5783,6 +5854,7 @@ "version": "0.0.1", "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", + "license": "Public Domain", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -5826,6 +5898,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/jsonpath/-/jsonpath-1.1.1.tgz", "integrity": "sha512-l6Cg7jRpixfbgoWgkrl77dgEj8RPvND0wMH6TwQmi9Qs4TFfS9u5cUFnbeKTwj5ga5Y3BTGGNI28k117LJ009w==", + "license": "MIT", "peer": true, "dependencies": { "esprima": "1.2.2", @@ -5846,6 +5919,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", + "license": "MIT", "dependencies": { "graceful-fs": "^4.1.11" } @@ -5965,6 +6039,7 @@ "version": "1.2.15", "resolved": "https://registry.npmjs.org/logplease/-/logplease-1.2.15.tgz", "integrity": "sha512-jLlHnlsPSJjpwUfcNyUxXCl33AYg2cHhIf9QhGL2T4iPT0XPB+xP1LRKFPgIg1M/sg9kAJvy94w9CzBNrfnstA==", + "license": "MIT", "peer": true }, "node_modules/lru-cache": { @@ -6124,6 +6199,7 @@ "version": "1.17.3", "resolved": "https://registry.npmjs.org/n3/-/n3-1.17.3.tgz", "integrity": "sha512-ZHc24eZi2GIJcJQVxtL6NT3g+mTHRNeTVfXWELzeUOirqLrh2AAyg0nfYZ/kryJWKFSCgO37DGB6Ok3qmGgEcA==", + "license": "MIT", "dependencies": { "queue-microtask": "^1.1.2", "readable-stream": "^4.0.0" @@ -6136,6 +6212,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/nanoassert/-/nanoassert-2.0.0.tgz", "integrity": "sha512-7vO7n28+aYO4J+8w96AzhmU8G+Y/xpPDJz/se19ICsqj/momRbb9mh9ZUtkoJ5X3nTnPdhEJyc0qnM6yAsHBaA==", + "license": "ISC", "peer": true }, "node_modules/natural-compare": { @@ -6222,6 +6299,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "license": "MIT", "engines": { "node": ">= 0.4" } @@ -6253,6 +6331,7 @@ "version": "7.4.2", "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", + "license": "MIT", "dependencies": { "is-docker": "^2.0.0", "is-wsl": "^2.1.1" @@ -6285,6 +6364,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -6362,6 +6442,7 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-8.0.0.tgz", "integrity": "sha512-da8BVIhzjtgScwDJ2TtKsfT5JFWz1hYoBl9rUQ1f38MC2HwnEIkK8VN3dKMKcP7P7bvvgzNDbfNHtx3MsQb5vA==", + "license": "MIT", "dependencies": { "@yarnpkg/lockfile": "^1.1.0", "chalk": "^4.1.2", @@ -6391,6 +6472,7 @@ "version": "9.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "license": "MIT", "dependencies": { "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", @@ -6405,6 +6487,7 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "license": "MIT", "dependencies": { "universalify": "^2.0.0" }, @@ -6417,6 +6500,7 @@ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", "deprecated": "Rimraf versions prior to v4 are no longer supported", + "license": "ISC", "dependencies": { "glob": "^7.1.3" }, @@ -6428,6 +6512,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", + "license": "MIT", "engines": { "node": ">=6" } @@ -6436,6 +6521,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "license": "MIT", "engines": { "node": ">= 10.0.0" } @@ -6655,6 +6741,7 @@ "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "license": "MIT", "engines": { "node": ">= 0.6.0" } @@ -6733,6 +6820,7 @@ "version": "0.0.48", "resolved": "https://registry.npmjs.org/r1csfile/-/r1csfile-0.0.48.tgz", "integrity": "sha512-kHRkKUJNaor31l05f2+RFzvcH5XSa7OfEfd/l4hzjte6NL6fjRkSMfZ4BjySW9wmfdwPOtq3mXurzPvPGEf5Tw==", + "license": "GPL-3.0", "peer": true, "dependencies": { "@iden3/bigarray": "0.0.2", @@ -6771,6 +6859,7 @@ "version": "4.5.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "license": "MIT", "dependencies": { "abort-controller": "^3.0.0", "buffer": "^6.0.3", @@ -6890,6 +6979,7 @@ "version": "1.5.3", "resolved": "https://registry.npmjs.org/rfc4648/-/rfc4648-1.5.3.tgz", "integrity": "sha512-MjOWxM065+WswwnmNONOT+bD1nXzY9Km6u3kzvnx8F8/HXGZdz3T6e6vZJ8Q/RIMUSp/nxqjH3GwvJDy8ijeQQ==", + "license": "MIT", "peer": true }, "node_modules/rimraf": { @@ -7025,7 +7115,8 @@ "node_modules/scrypt-js": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz", - "integrity": "sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==" + "integrity": "sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==", + "license": "MIT" }, "node_modules/semver": { "version": "7.6.0", @@ -7070,6 +7161,7 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -7131,6 +7223,7 @@ "version": "0.7.4", "resolved": "https://registry.npmjs.org/snarkjs/-/snarkjs-0.7.4.tgz", "integrity": "sha512-x4cOCR4YXSyBlLtfnUUwfbZrw8wFd/Y0lk83eexJzKwZB8ELdpH+10ts8YtDsm2/a3WK7c7p514bbE8NpqxW8w==", + "license": "GPL-3.0", "peer": true, "dependencies": { "@iden3/binfileutils": "0.0.12", @@ -7152,6 +7245,7 @@ "version": "0.8.0", "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==", + "license": "MIT", "peer": true }, "node_modules/source-map": { @@ -7215,6 +7309,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.0.2.tgz", "integrity": "sha512-N/D219Hcr2bPjLxPiV+TQE++Tsmrady7TqAJugLy7Xk1EumfDWS/f5dtBbkRCGE7wKKXuYockQoj8Rm2/pVKyg==", + "license": "MIT", "peer": true, "dependencies": { "escodegen": "^1.8.1" @@ -7224,6 +7319,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", "dependencies": { "safe-buffer": "~5.2.0" } @@ -7411,6 +7507,7 @@ "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "license": "MIT", "dependencies": { "os-tmpdir": "~1.0.2" }, @@ -7448,6 +7545,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==", + "license": "MIT", "peer": true }, "node_modules/ts-command-line-args": { @@ -7762,6 +7860,7 @@ "version": "1.12.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.12.1.tgz", "integrity": "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==", + "license": "MIT", "peer": true }, "node_modules/undici": { @@ -7873,12 +7972,14 @@ "version": "0.0.16", "resolved": "https://registry.npmjs.org/wasmbuilder/-/wasmbuilder-0.0.16.tgz", "integrity": "sha512-Qx3lEFqaVvp1cEYW7Bfi+ebRJrOiwz2Ieu7ZG2l7YyeSJIok/reEQCQCuicj/Y32ITIJuGIM9xZQppGx5LrQdA==", + "license": "GPL-3.0", "peer": true }, "node_modules/wasmcurves": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/wasmcurves/-/wasmcurves-0.2.2.tgz", "integrity": "sha512-JRY908NkmKjFl4ytnTu5ED6AwPD+8VJ9oc94kdq7h5bIwbj0L4TDJ69mG+2aLs2SoCmGfqIesMWTEJjtYsoQXQ==", + "license": "GPL-3.0", "peer": true, "dependencies": { "wasmbuilder": "0.0.16" @@ -7896,6 +7997,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.2.0.tgz", "integrity": "sha512-PgF341avzqyx60neE9DD+XS26MMNMoUQRz9NOZwW32nPQrF6p77f1htcnjBSEV8BGMKZ16choqUG4hyI0Hx7mA==", + "license": "Apache-2.0", "peer": true }, "node_modules/which": { @@ -7916,6 +8018,7 @@ "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "license": "MIT", "peer": true, "engines": { "node": ">=0.10.0" @@ -8014,9 +8117,10 @@ "dev": true }, "node_modules/yaml": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.5.tgz", - "integrity": "sha512-aBx2bnqDzVOyNKfsysjA2ms5ZlnjSAW2eG3/L5G/CSujfjLJTJsEw1bGw8kCf04KodQWk1pxlGnZ56CRxiawmg==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz", + "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", + "license": "ISC", "bin": { "yaml": "bin.mjs" }, diff --git a/package.json b/package.json index b0db34e..7f701b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@iden3/js-iden3-auth", - "version": "1.4.0", + "version": "1.5.0", "description": "iden3-auth implementation in JavaScript", "main": "dist/cjs/index.js", "source": "./src/index.ts", @@ -32,12 +32,12 @@ "url": "https://github.com/iden3/js-iden3-auth" }, "dependencies": { + "@0xpolygonid/js-sdk": "1.18.3", "@iden3/js-crypto": "1.1.0", - "@0xpolygonid/js-sdk": "1.16.1", "@iden3/js-iden3-core": "1.4.0", - "@iden3/js-jsonld-merklization": "1.3.1", - "@iden3/js-jwz": "1.6.0", - "@iden3/js-merkletree": "1.2.0", + "@iden3/js-jsonld-merklization": "1.4.1", + "@iden3/js-jwz": "1.7.1", + "@iden3/js-merkletree": "1.3.1", "did-resolver": "^4.1.0", "ethers": "^5.4.0", "tslib": "^2.6.2", diff --git a/src/auth/auth.ts b/src/auth/auth.ts index 74c0f46..122fd6d 100644 --- a/src/auth/auth.ts +++ b/src/auth/auth.ts @@ -305,7 +305,7 @@ export class Verifier { const pubSignals = await verifier.verifyQuery( proofRequest.query as unknown as Query, this.schemaLoader, - proofResp.vp as JSON, + proofResp.vp, opts, params ); diff --git a/src/circuits/atomicMtpV2.ts b/src/circuits/atomicMtpV2.ts index 9b6f73c..c3fc554 100644 --- a/src/circuits/atomicMtpV2.ts +++ b/src/circuits/atomicMtpV2.ts @@ -9,7 +9,8 @@ import { AtomicQueryMTPV2PubSignals, BaseConfig, byteEncoder, - CircuitId + CircuitId, + VerifiablePresentation } from '@0xpolygonid/js-sdk'; const valuesSize = 64; @@ -41,7 +42,7 @@ export class AtomicQueryMTPV2PubSignalsVerifier async verifyQuery( query: Query, schemaLoader?: DocumentLoader, - verifiablePresentation?: JSON, + verifiablePresentation?: VerifiablePresentation, opts?: VerifyOpts ): Promise { const outs: ClaimOutputs = { diff --git a/src/circuits/atomicSigV2.ts b/src/circuits/atomicSigV2.ts index 5ac3528..565aceb 100644 --- a/src/circuits/atomicSigV2.ts +++ b/src/circuits/atomicSigV2.ts @@ -9,7 +9,8 @@ import { AtomicQuerySigV2PubSignals, BaseConfig, byteEncoder, - CircuitId + CircuitId, + VerifiablePresentation } from '@0xpolygonid/js-sdk'; const valuesSize = 64; @@ -34,7 +35,7 @@ export class AtomicQuerySigV2PubSignalsVerifier async verifyQuery( query: Query, schemaLoader?: DocumentLoader, - verifiablePresentation?: JSON, + verifiablePresentation?: VerifiablePresentation, opts?: VerifyOpts ): Promise { const outs: ClaimOutputs = { diff --git a/src/circuits/atomicV3.ts b/src/circuits/atomicV3.ts index 2a702ae..ae9b234 100644 --- a/src/circuits/atomicV3.ts +++ b/src/circuits/atomicV3.ts @@ -19,6 +19,7 @@ import { validateDisclosureNativeSDSupport, validateEmptyCredentialSubjectNoopNativeSupport, validateOperators, + VerifiablePresentation, verifyFieldValueInclusionNativeExistsSupport } from '@0xpolygonid/js-sdk'; import { JsonLd } from 'jsonld/jsonld-spec'; @@ -30,10 +31,7 @@ const defaultProofVerifyOpts = 1 * 60 * 60 * 1000; // 1 hour * Verifies the public signals for the AtomicQueryV3 circuit. * @beta */ -export class AtomicQueryV3PubSignalsVerifier - extends IDOwnershipPubSignals - implements PubSignalsVerifier -{ +export class AtomicQueryV3PubSignalsVerifier extends IDOwnershipPubSignals implements PubSignalsVerifier { pubSignals = new AtomicQueryV3PubSignals(); constructor(pubSignals: string[]) { @@ -49,7 +47,7 @@ export class AtomicQueryV3PubSignalsVerifier async verifyQuery( query: Query, schemaLoader?: DocumentLoader, - verifiablePresentation?: JSON, + verifiablePresentation?: VerifiablePresentation, opts?: VerifyOpts, params?: JSONObject ): Promise { @@ -84,7 +82,7 @@ export class AtomicQueryV3PubSignalsVerifier const queriesMetadata = await parseQueriesMetadata( query.type, JSON.stringify(context), - query.credentialSubject as JSONObject, + query.credentialSubject, { documentLoader: loader } diff --git a/src/circuits/linkedMultiQuery.ts b/src/circuits/linkedMultiQuery.ts index cfd0a55..5806866 100644 --- a/src/circuits/linkedMultiQuery.ts +++ b/src/circuits/linkedMultiQuery.ts @@ -14,9 +14,9 @@ import { QueryMetadata, LinkedMultiQueryInputs, Operators, - fieldValueFromVerifiablePresentation + fieldValueFromVerifiablePresentation, + VerifiablePresentation } from '@0xpolygonid/js-sdk'; -import { poseidon } from '@iden3/js-crypto'; /** * Verifies the linked multi-query circuit. @@ -38,7 +38,7 @@ export class LinkedMultiQueryVerifier implements PubSignalsVerifier { async verifyQuery( query: Query, schemaLoader?: DocumentLoader, - verifiablePresentation?: JSON + verifiablePresentation?: VerifiablePresentation ): Promise { let schema: JSONObject; const ldOpts = { documentLoader: schemaLoader ?? cacheLoader() }; @@ -48,7 +48,7 @@ export class LinkedMultiQueryVerifier implements PubSignalsVerifier { throw new Error(`can't load schema for request query`); } const ldContextJSON = JSON.stringify(schema); - const credentialSubject = query.credentialSubject as JSONObject; + const credentialSubject = query.credentialSubject; const schemaId: string = await Path.getTypeIDFromContext(ldContextJSON, query.type, ldOpts); const schemaHash = calculateCoreSchemaHash(byteEncoder.encode(schemaId)); diff --git a/src/circuits/query.ts b/src/circuits/query.ts index a9bbd3a..1af1750 100644 --- a/src/circuits/query.ts +++ b/src/circuits/query.ts @@ -6,13 +6,14 @@ import { CircuitId, ProofQuery, parseQueriesMetadata, - JSONObject, checkQueryRequest, validateDisclosureV2Circuit, validateEmptyCredentialSubjectV2Circuit, verifyFieldValueInclusionV2, validateOperators, - checkCircuitOperator + checkCircuitOperator, + JsonDocumentObject, + VerifiablePresentation } from '@0xpolygonid/js-sdk'; import { VerifyOpts } from './registry'; import { JsonLd } from 'jsonld/jsonld-spec'; @@ -22,7 +23,7 @@ export const userStateError = new Error(`user state is not valid`); // Query is a query to circuit export interface Query { allowedIssuers: string[]; - credentialSubject: { [key: string]: unknown }; + credentialSubject: JsonDocumentObject; context: string; type: string; claimID?: string; @@ -53,7 +54,7 @@ export async function checkQueryV2Circuits( outs: ClaimOutputs, schemaLoader: DocumentLoader | undefined, opts: VerifyOpts | undefined, - verifiablePresentation: JSON | undefined + verifiablePresentation: VerifiablePresentation | undefined ) { if (!query.type) { throw new Error(`proof query type is undefined`); @@ -72,7 +73,7 @@ export async function checkQueryV2Circuits( const queriesMetadata = await parseQueriesMetadata( query.type, JSON.stringify(context), - query.credentialSubject as JSONObject, + query.credentialSubject as JsonDocumentObject, { documentLoader: loader } diff --git a/src/circuits/registry.ts b/src/circuits/registry.ts index da73298..4841495 100644 --- a/src/circuits/registry.ts +++ b/src/circuits/registry.ts @@ -5,7 +5,7 @@ import { Query } from '@lib/circuits/query'; import { Resolvers } from '@lib/state/resolver'; import { DocumentLoader } from '@iden3/js-jsonld-merklization'; import { AtomicQueryV3PubSignalsVerifier } from '@lib/circuits/atomicV3'; -import { BaseConfig } from '@0xpolygonid/js-sdk'; +import { BaseConfig, VerifiablePresentation } from '@0xpolygonid/js-sdk'; import { LinkedMultiQueryVerifier } from '@lib/circuits/linkedMultiQuery'; export type VerifyOpts = { @@ -19,7 +19,7 @@ export interface PubSignalsVerifier { verifyQuery( query: Query, schemaLoader?: DocumentLoader, - verifiablePresentation?: JSON, + verifiablePresentation?: VerifiablePresentation, opts?: VerifyOpts, circuitParams?: { [key: string]: unknown } ): Promise; diff --git a/test/atomicV3.test.ts b/test/atomicV3.test.ts index acd60c8..d9a58f4 100644 --- a/test/atomicV3.test.ts +++ b/test/atomicV3.test.ts @@ -19,7 +19,7 @@ describe('atomicV3', () => { const request: AuthorizationRequestMessage = { id: '28b15cd4-3aa1-4ddc-88a3-c05a0f788065', typ: PROTOCOL_CONSTANTS.MediaType.PlainMessage, - type: 'https://iden3-communication.io/authorization/1.0/request', + type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_REQUEST_MESSAGE_TYPE, thid: '28b15cd4-3aa1-4ddc-88a3-c05a0f788065', body: { callbackUrl: 'https://test.com/callback', @@ -50,7 +50,7 @@ describe('atomicV3', () => { const message: AuthorizationResponseMessage = { id: '59fbefd2-39ce-4346-94f1-49ec86141ba9', typ: PROTOCOL_CONSTANTS.MediaType.PlainMessage, - type: 'https://iden3-communication.io/authorization/1.0/response', + type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_RESPONSE_MESSAGE_TYPE, thid: '28b15cd4-3aa1-4ddc-88a3-c05a0f788065', body: { message: 'message to sign', @@ -183,10 +183,10 @@ describe('atomicV3', () => { }); it('TestVerifyV3MessageWithMtpProof_Merklized', async () => { - const request = { + const request: AuthorizationRequestMessage = { id: '7e5b5847-b479-4499-90ee-5fe4826a5bdd', typ: PROTOCOL_CONSTANTS.MediaType.PlainMessage, - type: 'https://iden3-communication.io/authorization/1.0/request', + type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_REQUEST_MESSAGE_TYPE, thid: '7e5b5847-b479-4499-90ee-5fe4826a5bdd', body: { callbackUrl: 'https://test.com/callback', @@ -216,7 +216,7 @@ describe('atomicV3', () => { const message: AuthorizationResponseMessage = { id: 'ac381820-21af-499a-8c5d-8f01fca9783c', typ: PROTOCOL_CONSTANTS.MediaType.PlainMessage, - type: 'https://iden3-communication.io/authorization/1.0/response', + type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_RESPONSE_MESSAGE_TYPE, thid: '7e5b5847-b479-4499-90ee-5fe4826a5bdd', body: { message: 'message to sign', @@ -352,7 +352,7 @@ describe('atomicV3', () => { const request: AuthorizationRequestMessage = { id: '7d22275a-b518-45bb-8ee1-85e12abd8532', typ: PROTOCOL_CONSTANTS.MediaType.PlainMessage, - type: 'https://iden3-communication.io/authorization/1.0/request', + type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_REQUEST_MESSAGE_TYPE, thid: '7d22275a-b518-45bb-8ee1-85e12abd8532', body: { callbackUrl: 'http://localhost:8080/callback?id=1234442-123123-123123', @@ -420,7 +420,7 @@ describe('atomicV3', () => { const request = { id: '7e5b5847-b479-4499-90ee-5fe4826a5bdd', typ: PROTOCOL_CONSTANTS.MediaType.PlainMessage, - type: 'https://iden3-communication.io/authorization/1.0/request', + type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_REQUEST_MESSAGE_TYPE, thid: '7e5b5847-b479-4499-90ee-5fe4826a5bdd', body: { callbackUrl: 'https://test.com/callback', @@ -446,7 +446,7 @@ describe('atomicV3', () => { const message: AuthorizationResponseMessage = { id: 'ac381820-21af-499a-8c5d-8f01fca9783c', typ: PROTOCOL_CONSTANTS.MediaType.PlainMessage, - type: 'https://iden3-communication.io/authorization/1.0/response', + type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_RESPONSE_MESSAGE_TYPE, thid: '7e5b5847-b479-4499-90ee-5fe4826a5bdd', body: { scope: [ @@ -581,7 +581,7 @@ describe('atomicV3', () => { const request = { id: '7e5b5847-b479-4499-90ee-5fe4826a5bdd', typ: PROTOCOL_CONSTANTS.MediaType.PlainMessage, - type: 'https://iden3-communication.io/authorization/1.0/request', + type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_REQUEST_MESSAGE_TYPE, thid: '7e5b5847-b479-4499-90ee-5fe4826a5bdd', body: { callbackUrl: 'https://test.com/callback', @@ -606,7 +606,7 @@ describe('atomicV3', () => { const message: AuthorizationResponseMessage = { id: 'ac381820-21af-499a-8c5d-8f01fca9783c', typ: PROTOCOL_CONSTANTS.MediaType.PlainMessage, - type: 'https://iden3-communication.io/authorization/1.0/response', + type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_RESPONSE_MESSAGE_TYPE, thid: '7e5b5847-b479-4499-90ee-5fe4826a5bdd', body: { scope: [ diff --git a/test/auth.test.ts b/test/auth.test.ts index 0b2936a..a92a6af 100644 --- a/test/auth.test.ts +++ b/test/auth.test.ts @@ -132,7 +132,7 @@ describe('auth tests', () => { const response: AuthorizationResponseMessage = { id: 'd61ca0e1-0fb4-42e1-9baf-10926d76588a', typ: PROTOCOL_CONSTANTS.MediaType.ZKPMessage, - type: 'https://iden3-communication.io/authorization/1.0/response', + type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_RESPONSE_MESSAGE_TYPE, thid: '3bfc628a-6d16-4af7-8358-59656ca30600', body: { message: 'message to sign', @@ -297,7 +297,7 @@ describe('auth tests', () => { const response: AuthorizationResponseMessage = { id: 'fe05a780-3a91-4a12-84bd-a23223004543', typ: PROTOCOL_CONSTANTS.MediaType.ZKPMessage, - type: 'https://iden3-communication.io/authorization/1.0/response', + type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_RESPONSE_MESSAGE_TYPE, thid: 'cbeb7e95-49a6-4107-ad5d-33de4620a2c7', body: { message: 'message to sign', diff --git a/test/linked-proofs.test.ts b/test/linked-proofs.test.ts index abfcf8f..dcf0e8a 100644 --- a/test/linked-proofs.test.ts +++ b/test/linked-proofs.test.ts @@ -9,7 +9,7 @@ describe('Linked proofs verification', () => { const authRequest: AuthorizationRequestMessage = { id: 'f5bcdfc9-3819-4052-ad97-c059119e563c', typ: PROTOCOL_CONSTANTS.MediaType.PlainMessage, - type: 'https://iden3-communication.io/authorization/1.0/request', + type: PROTOCOL_CONSTANTS.PROTOCOL_MESSAGE_TYPE.AUTHORIZATION_REQUEST_MESSAGE_TYPE, thid: 'f5bcdfc9-3819-4052-ad97-c059119e563c', body: { callbackUrl: 'http://localhost:8080/callback?id=1234442-123123-123123',