@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.
@@ -14785,9 +14785,8 @@ var fieldValueFromVerifiablePresentation = async (fieldName, verifiablePresentat
14785
14785
  }
14786
14786
  return await value.mtEntry();
14787
14787
  };
14788
- function calculateGroupId(requestIds) {
14789
- const types = Array(requestIds.length).fill("uint256");
14790
- const groupID = BigInt(import_ethers15.ethers.keccak256(import_ethers15.ethers.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
14788
+ function calculateGroupId() {
14789
+ const groupID = BigInt(import_ethers15.ethers.keccak256(import_ethers15.ethers.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
14791
14790
  BigInt("0x0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF");
14792
14791
  return groupID;
14793
14792
  }