chore: add constant depth

This commit is contained in:
rymnc 2022-11-28 10:32:09 +05:30
parent 1c7779acd3
commit 4ab3a6f2fb
No known key found for this signature in database
GPG Key ID: C740033EE3F41EBD

View File

@ -4,6 +4,8 @@ export const sToBytes32 = (str: string): string => {
return utils.formatBytes32String(str);
};
export const merkleTreeDepth = 10;
export const SNARK_SCALAR_FIELD = BigInt(
"21888242871839275222246405745257275088548364400416034343698204186575808495617"
);
@ -31,7 +33,7 @@ export const getGroups = () => {
provider: sToBytes32(provider),
name: sToBytes32(tier),
root: 1,
depth: 10,
depth: merkleTreeDepth,
};
})
);