chore: fix prettier v268 (#1181)

* chore(common): format files with Prettier to satisfy CI lint

* security(demo): guard @noble/hashes resolver against path traversal in Metro
This commit is contained in:
Justin Hernandez
2025-10-01 16:38:10 -07:00
committed by GitHub
parent a909ebf402
commit 79fdd04f18
3 changed files with 11 additions and 8 deletions

View File

@@ -49,7 +49,6 @@ function computeUppercasePaddedName(name: string): number[] {
.map((char) => char.charCodeAt(0));
}
// Helper function to compute final commitment
export function computeCommitment(
secret: bigint,
@@ -61,8 +60,6 @@ export function computeCommitment(
return poseidon5([secret, qrHash, nullifier, packedCommitment, photoHash]);
}
// Helper function to compute packed commitment
export function computePackedCommitment(
extractedFields: ReturnType<typeof extractQRDataFields>
@@ -77,7 +74,6 @@ export function computePackedCommitment(
return BigInt(packBytesAndPoseidon(packedCommitmentArgs));
}
export function convertByteArrayToBigInt(byteArray: Uint8Array | number[]): bigint {
let result = 0n;
for (let i = 0; i < byteArray.length; i++) {