@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.
@@ -14242,9 +14242,8 @@ var fieldValueFromVerifiablePresentation = async (fieldName, verifiablePresentat
14242
14242
  }
14243
14243
  return await value.mtEntry();
14244
14244
  };
14245
- function calculateGroupId(requestIds) {
14246
- const types = Array(requestIds.length).fill("uint256");
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
  }