@0xpolygonid/js-sdk 1.38.3 → 1.38.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/esm/index.js +1 -1
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.global.js +1 -1
- package/dist/browser/umd/index.global.js.map +1 -1
- package/dist/node/cjs/index.cjs +1 -1
- package/dist/node/cjs/index.cjs.map +1 -1
- package/dist/node/esm/index.js +1 -1
- package/dist/node/esm/index.js.map +1 -1
- package/dist/types/proof/proof-service.d.ts +1 -1
- package/package.json +1 -1
- package/src/iden3comm/handlers/auth.ts +2 -2
- package/src/proof/proof-service.ts +2 -2
package/package.json
CHANGED
|
@@ -374,7 +374,7 @@ export class AuthHandler
|
|
|
374
374
|
throw new Error(`proof response doesn't contain from field`);
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
const groupIdToLinkIdMap = new Map<number, { linkID:
|
|
377
|
+
const groupIdToLinkIdMap = new Map<number, { linkID: string; requestId: number | string }[]>();
|
|
378
378
|
// group requests by query group id
|
|
379
379
|
for (const proofRequest of requestScope) {
|
|
380
380
|
const groupId = proofRequest.query.groupId as number;
|
|
@@ -420,7 +420,7 @@ export class AuthHandler
|
|
|
420
420
|
if (linkID && groupId) {
|
|
421
421
|
groupIdToLinkIdMap.set(groupId, [
|
|
422
422
|
...(groupIdToLinkIdMap.get(groupId) ?? []),
|
|
423
|
-
{ linkID: linkID, requestId: proofResp.id }
|
|
423
|
+
{ linkID: linkID.toString(), requestId: proofResp.id }
|
|
424
424
|
]);
|
|
425
425
|
}
|
|
426
426
|
}
|
|
@@ -71,7 +71,7 @@ export interface QueryWithFieldName {
|
|
|
71
71
|
* @type VerificationResultMetadata
|
|
72
72
|
*/
|
|
73
73
|
export type VerificationResultMetadata = {
|
|
74
|
-
linkID?:
|
|
74
|
+
linkID?: bigint;
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
/**
|
|
@@ -272,7 +272,7 @@ export class ProofService implements IProofService {
|
|
|
272
272
|
};
|
|
273
273
|
const pubSignals = await this._pubSignalsVerifier.verify(proofResp.circuitId, verifyContext);
|
|
274
274
|
|
|
275
|
-
return { linkID: (pubSignals as unknown as { linkID?:
|
|
275
|
+
return { linkID: (pubSignals as unknown as { linkID?: bigint }).linkID };
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
/** {@inheritdoc IProofService.generateProof} */
|