@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/cjs/index.cjs
CHANGED
|
@@ -14785,9 +14785,8 @@ var fieldValueFromVerifiablePresentation = async (fieldName, verifiablePresentat
|
|
|
14785
14785
|
}
|
|
14786
14786
|
return await value.mtEntry();
|
|
14787
14787
|
};
|
|
14788
|
-
function calculateGroupId(
|
|
14789
|
-
const
|
|
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
|
}
|