@0xpolygonid/js-sdk 1.39.4 → 1.40.0
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 +2 -3
- 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 +2 -3
- package/dist/node/cjs/index.cjs.map +1 -1
- package/dist/node/esm/index.js +2 -3
- package/dist/node/esm/index.js.map +1 -1
- package/dist/types/proof/verifiers/query.d.ts +1 -1
- package/dist/types/proof/verifiers/query.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/proof/verifiers/query.ts +2 -4
package/dist/node/esm/index.js
CHANGED
|
@@ -14242,9 +14242,8 @@ var fieldValueFromVerifiablePresentation = async (fieldName, verifiablePresentat
|
|
|
14242
14242
|
}
|
|
14243
14243
|
return await value.mtEntry();
|
|
14244
14244
|
};
|
|
14245
|
-
function calculateGroupId(
|
|
14246
|
-
const
|
|
14247
|
-
const groupID = BigInt(ethers9.keccak256(ethers9.solidityPacked(types, requestIds))) & // It should fit in a field number in the circuit (max 253 bits). With this we truncate to 252 bits for the group ID
|
|
14245
|
+
function calculateGroupId() {
|
|
14246
|
+
const groupID = BigInt(ethers9.keccak256(ethers9.randomBytes(32))) & // It should fit in a field number in the circuit (max 253 bits). With this we truncate to 252 bits for the group ID
|
|
14248
14247
|
BigInt("0x0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF");
|
|
14249
14248
|
return groupID;
|
|
14250
14249
|
}
|