Skip to content

Commit

Permalink
rm ZeroKnowledgeProofRequest.params.veriferDid (#237)
Browse files Browse the repository at this point in the history
* rm ZeroKnowledgeProofRequest.params.veriferDid
* bump iden3-core
  • Loading branch information
volodymyr-basiuk authored Jun 7, 2024
1 parent 6633106 commit c673d59
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions src/iden3comm/handlers/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 0 additions & 2 deletions src/iden3comm/types/protocol/auth.ts
Original file line number Diff line number Diff line change
@@ -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 & {
Expand Down Expand Up @@ -39,7 +38,6 @@ export type ZeroKnowledgeProofRequest = {
query: JSONObject;
params?: {
nullifierSessionId?: string | number;
verifierDid?: DID;
};
};

Expand Down

0 comments on commit c673d59

Please sign in to comment.