diff --git a/.env.example b/.env.example index 4b9daf7..31001d8 100644 --- a/.env.example +++ b/.env.example @@ -1,14 +1,14 @@ # reverse hash service url RHS_URL="https://rhs-staging.polygonid.me" -# state v2 contract address in the mumbai network -CONTRACT_ADDRESS="0x134B1BE34911E39A8397ec6289782989729807a4" +# state v2 contract address in the amoy network +CONTRACT_ADDRESS="0x1a4cC30f2aA0377b0c3bc9848766D90cb4404124" # path to the circuits folder CIRCUITS_PATH="./circuits" # key in hex format with matic balance WALLET_KEY="" # MongoDB connection string, uses in memory Mongo server if not specified MONGO_DB_CONNECTION="" -# third part yurl to polygon mumbai network rpc node +# third part yurl to polygon amoy network rpc node THIRD_PARTY_RPC_URL="" # third party contract address in the linea test network THIRD_PARTY_CONTRACT_ADDRESS="" diff --git a/Readme.md b/Readme.md index c361305..c7c601b 100644 --- a/Readme.md +++ b/Readme.md @@ -9,7 +9,7 @@ ``` 2. Copy over the `.env.example` into `.env` - You'll need to fill in `RPC_URL` and `WALLET_KEY` with your own endpoint and key respectively. The default env vars assume you will be using the Polygon Mumbai network. + You'll need to fill in `RPC_URL` and `WALLET_KEY` with your own endpoint and key respectively. The default env vars assume you will be using the Polygon Amoy network. ```bash cp .env.example .env @@ -20,11 +20,11 @@ ```bash # reverse hash service url RHS_URL="https://rhs-staging.polygonid.me" - # state v2 contract address in the mumbai network - CONTRACT_ADDRESS="0x134B1BE34911E39A8397ec6289782989729807a4" + # state v2 contract address in the amoy network + CONTRACT_ADDRESS="0x1a4cC30f2aA0377b0c3bc9848766D90cb4404124" # path to the circuits folder CIRCUITS_PATH="./circuits" - # url to polygon mumbai network rpc node + # url to polygon amoy network rpc node RPC_URL="" # key in hex format with matic balance WALLET_KEY="" diff --git a/index.ts b/index.ts index b7b5f77..aed103d 100644 --- a/index.ts +++ b/index.ts @@ -38,9 +38,9 @@ const defaultNetworkConnection = { }; export const defaultIdentityCreationOptions: IdentityCreationOptions = { - method: core.DidMethod.Iden3, + method: core.DidMethod.PolygonId, blockchain: core.Blockchain.Polygon, - networkId: core.NetworkId.Mumbai, + networkId: core.NetworkId.Amoy, revocationOpts: { type: CredentialStatusType.Iden3ReverseSparseMerkleTreeProof, id: rhsUrl @@ -221,15 +221,15 @@ async function transitStateThirdPartyDID() { methodByte: 0b1000_0001, blockchain: 'linea', network: 'test', - networkFlag: 0b01000000 | 0b00000001, - chainId: 11155111 + networkFlag: 0b01000001 | 0b00000001, + chainId: 11155112 }); core.registerDidMethodNetwork({ method: 'iden3', blockchain: 'linea', network: 'test', - networkFlag: 0b11000000 | 0b00000011 + networkFlag: 0b11000001 | 0b00000011 }); const { dataStorage, credentialWallet, identityWallet } = await initInMemoryDataStorageAndWallets( @@ -1059,7 +1059,6 @@ async function main(choice: string) { await identityCreation(); await issueCredential(); await transitState(); - await transitStateThirdPartyDID(); await generateProofs(); await handleAuthRequest(); await handleAuthRequestWithProfiles(); diff --git a/package-lock.json b/package-lock.json index 796d483..f675273 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,20 +23,21 @@ "typescript": "^4.9.5" }, "peerDependencies": { - "@0xpolygonid/js-sdk": "1.8.3", + "@0xpolygonid/js-sdk": "1.10.3", "@0xpolygonid/mongo-storage": "github:0xPolygonID/nodejs-storage-example", - "@iden3/js-crypto": "1.0.3", - "@iden3/js-jsonld-merklization": "1.1.2", - "@iden3/js-jwz": "1.3.0", - "@iden3/js-merkletree": "1.1.2" + "@iden3/js-crypto": "1.1.0", + "@iden3/js-jsonld-merklization": "1.2.0", + "@iden3/js-jwz": "1.4.0", + "@iden3/js-merkletree": "1.2.0" } }, "node_modules/@0xpolygonid/js-sdk": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/@0xpolygonid/js-sdk/-/js-sdk-1.8.3.tgz", - "integrity": "sha512-I478qymvl8rx/UqeTEp5iPBcUkaJ7ciMAGDD6fi5VttJ7LMbb29sN/Odl9aPj4hy5PpRo1mwgBo+F+NCijtZ4g==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/@0xpolygonid/js-sdk/-/js-sdk-1.10.3.tgz", + "integrity": "sha512-NJdlu2o7uyXXht2GyzLd7VFPMwh3bR1SR+Omiu7zA81d1jf9CAUXpBBlJLIUCN94toA3qcTO+wfKFgK/rXbYHg==", "peer": true, "dependencies": { + "@noble/curves": "^1.4.0", "ajv": "8.12.0", "ajv-formats": "2.1.1", "did-jwt": "6.11.6", @@ -50,19 +51,43 @@ "uuid": "9.0.1" }, "engines": { - "node": ">=18.16.0" + "node": ">=20.11.0" }, "peerDependencies": { - "@iden3/js-crypto": "1.0.3", - "@iden3/js-iden3-core": "1.2.1", - "@iden3/js-jsonld-merklization": "1.1.2", - "@iden3/js-jwz": "1.3.0", - "@iden3/js-merkletree": "1.1.2", + "@iden3/js-crypto": "1.1.0", + "@iden3/js-iden3-core": "1.3.1", + "@iden3/js-jsonld-merklization": "1.2.0", + "@iden3/js-jwz": "1.4.0", + "@iden3/js-merkletree": "1.2.0", "ffjavascript": "0.2.63", "rfc4648": "1.5.3", "snarkjs": "0.7.3" } }, + "node_modules/@0xpolygonid/js-sdk/node_modules/@noble/curves": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.0.tgz", + "integrity": "sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==", + "peer": true, + "dependencies": { + "@noble/hashes": "1.4.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@0xpolygonid/js-sdk/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "peer": true, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@0xpolygonid/js-sdk/node_modules/idb-keyval": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/idb-keyval/-/idb-keyval-6.2.0.tgz", @@ -121,6 +146,36 @@ "snarkjs": "0.7.2" } }, + "node_modules/@0xpolygonid/mongo-storage/node_modules/@iden3/js-crypto": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@iden3/js-crypto/-/js-crypto-1.0.3.tgz", + "integrity": "sha512-IFBLIN1O26mM5MVWO8dlABDC6HKLuhYs+30BT+p6dGWsNXB4Rr5JWuhKBUbKlkW78ly3j3+YSoY+J63q7vPs5Q==", + "peer": true + }, + "node_modules/@0xpolygonid/mongo-storage/node_modules/@iden3/js-iden3-core": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@iden3/js-iden3-core/-/js-iden3-core-1.2.1.tgz", + "integrity": "sha512-XvRYQY1LfAn3sO2xoZfr3aAotr3snLKVlQ9ipfkfKwBpBbDGIMswljANcjWa2HxHwjKK4XLyPHArNORjw/yXMQ==", + "peer": true, + "peerDependencies": { + "@iden3/js-crypto": "1.0.3" + } + }, + "node_modules/@0xpolygonid/mongo-storage/node_modules/@iden3/js-jsonld-merklization": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@iden3/js-jsonld-merklization/-/js-jsonld-merklization-1.1.2.tgz", + "integrity": "sha512-R8p8EW35YCZQIAfb1GKUEpSdBayACvKFfwQBShGygTmCvA6TzixFc7POu3jmgGcjyRArZjUV6l17YJ33Pu++QQ==", + "peer": true, + "dependencies": { + "@js-temporal/polyfill": "0.4.4", + "jsonld": "8.3.1", + "n3": "1.17.1" + }, + "peerDependencies": { + "@iden3/js-crypto": "1.0.3", + "@iden3/js-merkletree": "1.1.2" + } + }, "node_modules/@0xpolygonid/mongo-storage/node_modules/@iden3/js-jwz": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@iden3/js-jwz/-/js-jwz-1.2.1.tgz", @@ -135,6 +190,16 @@ "snarkjs": "0.7.2" } }, + "node_modules/@0xpolygonid/mongo-storage/node_modules/@iden3/js-merkletree": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@iden3/js-merkletree/-/js-merkletree-1.1.2.tgz", + "integrity": "sha512-NT0L+Nk6barcEnSV5q2M6LkZuR889E856e+awnok6iDlmzYMt2l3gulo//zMqGsO6wQvzVECaSn0LJQ7uM5c1A==", + "peer": true, + "peerDependencies": { + "@iden3/js-crypto": "1.0.3", + "idb-keyval": "^6.2.0" + } + }, "node_modules/@0xpolygonid/mongo-storage/node_modules/ffjavascript": { "version": "0.2.62", "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.62.tgz", @@ -969,12 +1034,14 @@ }, "node_modules/@iden3/bigarray": { "version": "0.0.2", - "license": "GPL-3.0", + "resolved": "https://registry.npmjs.org/@iden3/bigarray/-/bigarray-0.0.2.tgz", + "integrity": "sha512-Xzdyxqm1bOFF6pdIsiHLLl3HkSLjbhqJHVyqaTxXt3RqXBEnmsUmEW47H7VOi/ak7TdkRpNkxjyK5Zbkm+y52g==", "peer": true }, "node_modules/@iden3/binfileutils": { "version": "0.0.11", - "license": "GPL-3.0", + "resolved": "https://registry.npmjs.org/@iden3/binfileutils/-/binfileutils-0.0.11.tgz", + "integrity": "sha512-LylnJoZ0CTdgErnKY8OxohvW4K+p6UHD3sxt+3P9AmMyBQjYR4IpoqoYZZ+9aMj89cmCQ21UvdhndAx04er3NA==", "peer": true, "dependencies": { "fastfile": "0.0.20", @@ -996,21 +1063,24 @@ } }, "node_modules/@iden3/js-crypto": { - "version": "1.0.3", - "license": "AGPL-3.0", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@iden3/js-crypto/-/js-crypto-1.1.0.tgz", + "integrity": "sha512-MbL7OpOxBoCybAPoorxrp+fwjDVESyDe6giIWxErjEIJy0Q2n1DU4VmKh4vDoCyhJx/RdVgT8Dkb59lKwISqsw==", "peer": true }, "node_modules/@iden3/js-iden3-core": { - "version": "1.2.1", - "license": "AGPL-3.0", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@iden3/js-iden3-core/-/js-iden3-core-1.3.1.tgz", + "integrity": "sha512-cCPuEdbTtgqtcK57trS23FmRbLqh8maHyAlxapYPDlua5GFOtKcyPJlglDb1tfIRxEipErfY7gdvBh3hm26kMg==", "peer": true, "peerDependencies": { - "@iden3/js-crypto": "1.0.3" + "@iden3/js-crypto": "1.1.0" } }, "node_modules/@iden3/js-jsonld-merklization": { - "version": "1.1.2", - "license": "AGPL-3.0", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@iden3/js-jsonld-merklization/-/js-jsonld-merklization-1.2.0.tgz", + "integrity": "sha512-7SplwPwNxdwdG/cx2xReEHskgF1Xs+z292M1OYtSrM1PYNY4TRBI5BVMgDcp7im6ehUnsGNOWvdqt78dYiGRqg==", "peer": true, "dependencies": { "@js-temporal/polyfill": "0.4.4", @@ -1018,30 +1088,31 @@ "n3": "1.17.1" }, "peerDependencies": { - "@iden3/js-crypto": "1.0.3", - "@iden3/js-merkletree": "1.1.2" + "@iden3/js-crypto": "1.1.0", + "@iden3/js-merkletree": "1.2.0" } }, "node_modules/@iden3/js-jwz": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@iden3/js-jwz/-/js-jwz-1.3.0.tgz", - "integrity": "sha512-rb6qtxDITy6gagxcoJJcTTccM0dDviyOVwDZVSPmmP/YHZ6JAPeZrIeC9hXDiKxmq83Gg9jD2qp9i89tjYBUTQ==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@iden3/js-jwz/-/js-jwz-1.4.0.tgz", + "integrity": "sha512-QaIpgR3Lp/+ZB4ZOgtG3eUsaoeg/CIfAf4NOl64f6kdeH40EdvOxku1Gw6NXUgg1U6Lhl1gU8Y/1RDgs/zzVxA==", "peer": true, "peerDependencies": { - "@iden3/js-crypto": "1.0.3", - "@iden3/js-iden3-core": "1.2.1", - "@iden3/js-merkletree": "1.1.2", + "@iden3/js-crypto": "1.1.0", + "@iden3/js-iden3-core": "1.3.1", + "@iden3/js-merkletree": "1.2.0", "ffjavascript": "0.2.63", "rfc4648": "1.5.3", "snarkjs": "0.7.3" } }, "node_modules/@iden3/js-merkletree": { - "version": "1.1.2", - "license": "AGPL-3.0", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@iden3/js-merkletree/-/js-merkletree-1.2.0.tgz", + "integrity": "sha512-tM6jj1v/41qQ6V2K6CTrv0KsNHQ2y/O6Q9RSB1SdN2LTu+cgA9FnD2Qr3whzSvwgUs7X3SjuJgb9OTgs0lDemQ==", "peer": true, "peerDependencies": { - "@iden3/js-crypto": "1.0.3", + "@iden3/js-crypto": "1.1.0", "idb-keyval": "^6.2.0" } }, @@ -2192,7 +2263,8 @@ }, "node_modules/async": { "version": "3.2.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", + "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==", "peer": true }, "node_modules/async-mutex": { @@ -2203,8 +2275,9 @@ } }, "node_modules/b4a": { - "version": "1.6.4", - "license": "ISC", + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.6.tgz", + "integrity": "sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==", "peer": true }, "node_modules/balanced-match": { @@ -2237,7 +2310,8 @@ }, "node_modules/bfj": { "version": "7.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/bfj/-/bfj-7.1.0.tgz", + "integrity": "sha512-I6MMLkn+anzNdCUp9hMRyui1HaNEUCco50lxbvNS4+EyXg8lN3nJ48PjPWtbH8UVS9CuMoaKE9U2V3l29DaRQw==", "peer": true, "dependencies": { "bluebird": "^3.7.2", @@ -2295,7 +2369,8 @@ }, "node_modules/blake2b-wasm": { "version": "2.4.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/blake2b-wasm/-/blake2b-wasm-2.4.0.tgz", + "integrity": "sha512-S1kwmW2ZhZFFFOghcx73+ZajEfKBqhP82JMssxtLVMxlaPea1p9uoLiUZ5WYyHn0KddwbLc+0vh4wR0KBNoT5w==", "peer": true, "dependencies": { "b4a": "^1.0.1", @@ -2304,7 +2379,8 @@ }, "node_modules/bluebird": { "version": "3.7.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", "peer": true }, "node_modules/bn.js": { @@ -2421,12 +2497,14 @@ }, "node_modules/check-types": { "version": "11.2.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.2.3.tgz", + "integrity": "sha512-+67P1GkJRaxQD6PKK0Et9DhwQB+vGg3PM5+aavopCpZT1lj9jeqfvpgTLAWErNj8qApkkmXlu/Ug74kmhagkXg==", "peer": true }, "node_modules/circom_runtime": { "version": "0.1.24", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/circom_runtime/-/circom_runtime-0.1.24.tgz", + "integrity": "sha512-H7/7I2J/cBmRnZm9docOCGhfxzS61BEm4TMCWcrZGsWNBQhePNfQq88Oj2XpUfzmBTCd8pRvRb3Mvazt3TMrJw==", "peer": true, "dependencies": { "ffjavascript": "0.2.60" @@ -2437,7 +2515,8 @@ }, "node_modules/circom_runtime/node_modules/ffjavascript": { "version": "0.2.60", - "license": "GPL-3.0", + "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.60.tgz", + "integrity": "sha512-T/9bnEL5xAZRDbQoEMf+pM9nrhK+C3JyZNmqiWub26EQorW7Jt+jR54gpqDhceA4Nj0YctPQwYnl8xa52/A26A==", "peer": true, "dependencies": { "wasmbuilder": "0.0.16", @@ -2590,7 +2669,8 @@ }, "node_modules/ejs": { "version": "3.1.9", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", + "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", "peer": true, "dependencies": { "jake": "^10.8.5" @@ -2637,7 +2717,8 @@ }, "node_modules/escodegen": { "version": "1.14.3", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", "peer": true, "dependencies": { "esprima": "^4.0.1", @@ -2658,7 +2739,8 @@ }, "node_modules/escodegen/node_modules/esprima": { "version": "4.0.1", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "peer": true, "bin": { "esparse": "bin/esparse.js", @@ -2670,7 +2752,8 @@ }, "node_modules/escodegen/node_modules/levn": { "version": "0.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", "peer": true, "dependencies": { "prelude-ls": "~1.1.2", @@ -2682,7 +2765,8 @@ }, "node_modules/escodegen/node_modules/optionator": { "version": "0.8.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", "peer": true, "dependencies": { "deep-is": "~0.1.3", @@ -2698,6 +2782,8 @@ }, "node_modules/escodegen/node_modules/prelude-ls": { "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", "peer": true, "engines": { "node": ">= 0.8.0" @@ -2705,7 +2791,8 @@ }, "node_modules/escodegen/node_modules/type-check": { "version": "0.3.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", "peer": true, "dependencies": { "prelude-ls": "~1.1.2" @@ -2891,6 +2978,8 @@ }, "node_modules/esprima": { "version": "1.2.2", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.2.2.tgz", + "integrity": "sha512-+JpPZam9w5DuJ3Q67SqsMGtiHKENSMRVoxvArfJZK01/BfLEObtZ6orJa/MtoGNR/rfMgp5837T41PAmTwAv/A==", "peer": true, "bin": { "esparse": "bin/esparse.js", @@ -3080,7 +3169,8 @@ }, "node_modules/fastfile": { "version": "0.0.20", - "license": "GPL-3.0", + "resolved": "https://registry.npmjs.org/fastfile/-/fastfile-0.0.20.tgz", + "integrity": "sha512-r5ZDbgImvVWCP0lA/cGNgQcZqR+aYdFx3u+CtJqUE510pBUVGMn4ulL/iRTI4tACTYsNJ736uzFxEBXesPAktA==", "peer": true }, "node_modules/fastq": { @@ -3132,12 +3222,6 @@ "web-worker": "1.2.0" } }, - "node_modules/ffjavascript/node_modules/web-worker": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.2.0.tgz", - "integrity": "sha512-PgF341avzqyx60neE9DD+XS26MMNMoUQRz9NOZwW32nPQrF6p77f1htcnjBSEV8BGMKZ16choqUG4hyI0Hx7mA==", - "peer": true - }, "node_modules/file-entry-cache": { "version": "6.0.1", "dev": true, @@ -3152,7 +3236,8 @@ }, "node_modules/filelist": { "version": "1.0.4", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", "peer": true, "dependencies": { "minimatch": "^5.0.1" @@ -3160,7 +3245,8 @@ }, "node_modules/filelist/node_modules/brace-expansion": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "peer": true, "dependencies": { "balanced-match": "^1.0.0" @@ -3168,7 +3254,8 @@ }, "node_modules/filelist/node_modules/minimatch": { "version": "5.1.6", - "license": "ISC", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", "peer": true, "dependencies": { "brace-expansion": "^2.0.1" @@ -3391,7 +3478,8 @@ }, "node_modules/hoopy": { "version": "0.1.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", + "integrity": "sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ==", "peer": true, "engines": { "node": ">= 6.0.0" @@ -3410,7 +3498,8 @@ }, "node_modules/idb-keyval": { "version": "6.2.1", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/idb-keyval/-/idb-keyval-6.2.1.tgz", + "integrity": "sha512-8Sb3veuYCyrZL+VBt9LJfZjLUPWVvqn8tG28VqYNFCo43KHcKuq+b4EiXGeuaLAQWL2YmyDgMp2aSpH9JHsEQg==", "peer": true }, "node_modules/ieee754": { @@ -3530,7 +3619,8 @@ }, "node_modules/jake": { "version": "10.8.7", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz", + "integrity": "sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==", "peer": true, "dependencies": { "async": "^3.2.3", @@ -3606,7 +3696,8 @@ }, "node_modules/jsonpath": { "version": "1.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/jsonpath/-/jsonpath-1.1.1.tgz", + "integrity": "sha512-l6Cg7jRpixfbgoWgkrl77dgEj8RPvND0wMH6TwQmi9Qs4TFfS9u5cUFnbeKTwj5ga5Y3BTGGNI28k117LJ009w==", "peer": true, "dependencies": { "esprima": "1.2.2", @@ -3694,7 +3785,8 @@ }, "node_modules/logplease": { "version": "1.2.15", - "license": "MIT", + "resolved": "https://registry.npmjs.org/logplease/-/logplease-1.2.15.tgz", + "integrity": "sha512-jLlHnlsPSJjpwUfcNyUxXCl33AYg2cHhIf9QhGL2T4iPT0XPB+xP1LRKFPgIg1M/sg9kAJvy94w9CzBNrfnstA==", "peer": true }, "node_modules/lru-cache": { @@ -3985,7 +4077,8 @@ }, "node_modules/nanoassert": { "version": "2.0.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/nanoassert/-/nanoassert-2.0.0.tgz", + "integrity": "sha512-7vO7n28+aYO4J+8w96AzhmU8G+Y/xpPDJz/se19ICsqj/momRbb9mh9ZUtkoJ5X3nTnPdhEJyc0qnM6yAsHBaA==", "peer": true }, "node_modules/natural-compare": { @@ -4298,7 +4391,8 @@ }, "node_modules/r1csfile": { "version": "0.0.47", - "license": "GPL-3.0", + "resolved": "https://registry.npmjs.org/r1csfile/-/r1csfile-0.0.47.tgz", + "integrity": "sha512-oI4mAwuh1WwuFg95eJDNDDL8hCaZkwnPuNZrQdLBWvDoRU7EG+L/MOHL7SwPW2Y+ZuYcTLpj3rBkgllBQZN/JA==", "peer": true, "dependencies": { "@iden3/bigarray": "0.0.2", @@ -4309,7 +4403,8 @@ }, "node_modules/r1csfile/node_modules/ffjavascript": { "version": "0.2.60", - "license": "GPL-3.0", + "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.60.tgz", + "integrity": "sha512-T/9bnEL5xAZRDbQoEMf+pM9nrhK+C3JyZNmqiWub26EQorW7Jt+jR54gpqDhceA4Nj0YctPQwYnl8xa52/A26A==", "peer": true, "dependencies": { "wasmbuilder": "0.0.16", @@ -4516,7 +4611,8 @@ }, "node_modules/snarkjs/node_modules/js-sha3": { "version": "0.8.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", + "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==", "peer": true }, "node_modules/socks": { @@ -4533,7 +4629,8 @@ }, "node_modules/source-map": { "version": "0.6.1", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "optional": true, "peer": true, "engines": { @@ -4549,7 +4646,8 @@ }, "node_modules/static-eval": { "version": "2.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.0.2.tgz", + "integrity": "sha512-N/D219Hcr2bPjLxPiV+TQE++Tsmrady7TqAJugLy7Xk1EumfDWS/f5dtBbkRCGE7wKKXuYockQoj8Rm2/pVKyg==", "peer": true, "dependencies": { "escodegen": "^1.8.1" @@ -4658,7 +4756,8 @@ }, "node_modules/tryer": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", + "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==", "peer": true }, "node_modules/ts-node": { @@ -4774,7 +4873,8 @@ }, "node_modules/underscore": { "version": "1.12.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.12.1.tgz", + "integrity": "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==", "peer": true }, "node_modules/undici": { @@ -4822,12 +4922,14 @@ }, "node_modules/wasmbuilder": { "version": "0.0.16", - "license": "GPL-3.0", + "resolved": "https://registry.npmjs.org/wasmbuilder/-/wasmbuilder-0.0.16.tgz", + "integrity": "sha512-Qx3lEFqaVvp1cEYW7Bfi+ebRJrOiwz2Ieu7ZG2l7YyeSJIok/reEQCQCuicj/Y32ITIJuGIM9xZQppGx5LrQdA==", "peer": true }, "node_modules/wasmcurves": { "version": "0.2.2", - "license": "GPL-3.0", + "resolved": "https://registry.npmjs.org/wasmcurves/-/wasmcurves-0.2.2.tgz", + "integrity": "sha512-JRY908NkmKjFl4ytnTu5ED6AwPD+8VJ9oc94kdq7h5bIwbj0L4TDJ69mG+2aLs2SoCmGfqIesMWTEJjtYsoQXQ==", "peer": true, "dependencies": { "wasmbuilder": "0.0.16" @@ -4842,8 +4944,9 @@ } }, "node_modules/web-worker": { - "version": "1.3.0", - "license": "Apache-2.0", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.2.0.tgz", + "integrity": "sha512-PgF341avzqyx60neE9DD+XS26MMNMoUQRz9NOZwW32nPQrF6p77f1htcnjBSEV8BGMKZ16choqUG4hyI0Hx7mA==", "peer": true }, "node_modules/webidl-conversions": { @@ -4881,7 +4984,8 @@ }, "node_modules/word-wrap": { "version": "1.2.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "peer": true, "engines": { "node": ">=0.10.0" diff --git a/package.json b/package.json index df672d3..05d51d4 100644 --- a/package.json +++ b/package.json @@ -14,12 +14,12 @@ "author": "", "license": "ISC", "peerDependencies": { - "@0xpolygonid/js-sdk": "1.8.3", + "@0xpolygonid/js-sdk": "1.10.3", "@0xpolygonid/mongo-storage": "github:0xPolygonID/nodejs-storage-example", - "@iden3/js-crypto": "1.0.3", - "@iden3/js-jsonld-merklization": "1.1.2", - "@iden3/js-jwz": "1.3.0", - "@iden3/js-merkletree": "1.1.2" + "@iden3/js-crypto": "1.1.0", + "@iden3/js-jsonld-merklization": "1.2.0", + "@iden3/js-jwz": "1.4.0", + "@iden3/js-merkletree": "1.2.0" }, "dependencies": { "dotenv": "^16.3.1",