add staging commitment tree url

This commit is contained in:
turnoffthiscomputer
2025-03-09 22:46:34 +01:00
parent bae2a38716
commit 2271176160
3 changed files with 7 additions and 5 deletions

View File

@@ -87,7 +87,7 @@ export async function generateTeeInputsVCAndDisclose(
const { passportNoAndNationalitySMT, nameAndDobSMT, nameAndYobSMT } =
await getOfacSMTs();
const serialized_tree = await getCommitmentTree();
const serialized_tree = await getCommitmentTree(passportData.documentType);
const tree = LeanIMT.import((a, b) => poseidon2([a, b]), serialized_tree);
console.log('tree', tree);
// const commitment = generateCommitment(

View File

@@ -206,7 +206,7 @@ export async function isUserRegistered(
PASSPORT_ATTESTATION_ID,
passportData,
);
const serializedTree = await getCommitmentTree();
const serializedTree = await getCommitmentTree(passportData.documentType);
const tree = LeanIMT.import((a, b) => poseidon2([a, b]), serializedTree);
const index = tree.indexOf(BigInt(commitment));
return index !== -1;