diff --git a/package-lock.json b/package-lock.json index 9144dcd6..4171b961 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@0xpolygonid/js-sdk", - "version": "1.15.0", + "version": "1.15.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@0xpolygonid/js-sdk", - "version": "1.15.0", + "version": "1.15.1", "license": "AGPL-3.0", "dependencies": { "@noble/curves": "^1.4.0", @@ -63,9 +63,9 @@ }, "peerDependencies": { "@iden3/js-crypto": "1.1.0", - "@iden3/js-iden3-core": "1.3.1", + "@iden3/js-iden3-core": "1.3.2", "@iden3/js-jsonld-merklization": "1.2.0", - "@iden3/js-jwz": "1.5.0", + "@iden3/js-jwz": "1.5.1", "@iden3/js-merkletree": "1.2.0", "ffjavascript": "0.3.0", "rfc4648": "1.5.3", @@ -680,9 +680,9 @@ "peer": true }, "node_modules/@iden3/js-iden3-core": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@iden3/js-iden3-core/-/js-iden3-core-1.3.1.tgz", - "integrity": "sha512-cCPuEdbTtgqtcK57trS23FmRbLqh8maHyAlxapYPDlua5GFOtKcyPJlglDb1tfIRxEipErfY7gdvBh3hm26kMg==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@iden3/js-iden3-core/-/js-iden3-core-1.3.2.tgz", + "integrity": "sha512-VZCwvXN9W1OV+V70O5ix+etesIH7wX9LcZZ8WCaB2JoAnPl85Uova9nTSrPMSl0pGOM0HgILUHKoVYyRkCc5Ig==", "peer": true, "peerDependencies": { "@iden3/js-crypto": "1.1.0" @@ -704,13 +704,13 @@ } }, "node_modules/@iden3/js-jwz": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@iden3/js-jwz/-/js-jwz-1.5.0.tgz", - "integrity": "sha512-OkAwMWbVwjw5JZ9a4jNVOVUd/0bQa/9yadmVLcUmlDPguVOCFqUVpgvdR1RkQ7hhfWygbpuF18ahSd4SVXvJkg==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@iden3/js-jwz/-/js-jwz-1.5.1.tgz", + "integrity": "sha512-D6G08KOGrK3iLX0Bz+zAcp9O7QJniHgiHo65FtkBa/QfgiZMhotXL62CGfbs0XYWnNI5ZuhWROcMCb/BT5mcMQ==", "peer": true, "peerDependencies": { "@iden3/js-crypto": "1.1.0", - "@iden3/js-iden3-core": "1.3.1", + "@iden3/js-iden3-core": "1.3.2", "@iden3/js-merkletree": "1.2.0", "ffjavascript": "0.3.0", "rfc4648": "1.5.3", diff --git a/package.json b/package.json index 78773fd7..d540d179 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@0xpolygonid/js-sdk", - "version": "1.15.0", + "version": "1.15.1", "description": "SDK to work with Polygon ID", "main": "dist/node/cjs/index.js", "module": "dist/node/esm/index.js", @@ -87,9 +87,9 @@ }, "peerDependencies": { "@iden3/js-crypto": "1.1.0", - "@iden3/js-iden3-core": "1.3.1", + "@iden3/js-iden3-core": "1.3.2", "@iden3/js-jsonld-merklization": "1.2.0", - "@iden3/js-jwz": "1.5.0", + "@iden3/js-jwz": "1.5.1", "@iden3/js-merkletree": "1.2.0", "ffjavascript": "0.3.0", "rfc4648": "1.5.3", diff --git a/src/iden3comm/handlers/auth.ts b/src/iden3comm/handlers/auth.ts index 82690baa..ff13cb72 100644 --- a/src/iden3comm/handlers/auth.ts +++ b/src/iden3comm/handlers/auth.ts @@ -9,7 +9,8 @@ import { BasicMessage, IPackageManager, JWSPackerParams, - ZeroKnowledgeProofRequest + ZeroKnowledgeProofRequest, + JSONObject } from '../types'; import { DID } from '@iden3/js-iden3-core'; import { proving } from '@iden3/js-jwz'; @@ -352,7 +353,7 @@ export class AuthHandler ); } - const params = proofRequest.params ?? {}; + const params: JSONObject = proofRequest.params ?? {}; params.verifierDid = DID.parse(request.from); const opts = [ctx.acceptedProofGenerationDelay, ctx.acceptedStateTransitionDelay].some( diff --git a/src/iden3comm/types/protocol/auth.ts b/src/iden3comm/types/protocol/auth.ts index b1388536..42d17def 100644 --- a/src/iden3comm/types/protocol/auth.ts +++ b/src/iden3comm/types/protocol/auth.ts @@ -1,6 +1,5 @@ import { ZKProof } from '@iden3/js-jwz'; import { BasicMessage, JSONObject } from '../packer'; -import { DID } from '@iden3/js-iden3-core'; /** AuthorizationResponseMessage is struct the represents iden3message authorization response */ export type AuthorizationResponseMessage = BasicMessage & { @@ -39,7 +38,6 @@ export type ZeroKnowledgeProofRequest = { query: JSONObject; params?: { nullifierSessionId?: string | number; - verifierDid?: DID; }; };