From 3822288495229132dbacd7001080e0351906c31a Mon Sep 17 00:00:00 2001 From: seshanthS Date: Wed, 22 Jan 2025 15:43:38 +0530 Subject: [PATCH] fix bits --- circuits/tests/register/test_cases.ts | 2 +- common/src/utils/circuitsName.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/circuits/tests/register/test_cases.ts b/circuits/tests/register/test_cases.ts index 6c25cf92..57689381 100644 --- a/circuits/tests/register/test_cases.ts +++ b/circuits/tests/register/test_cases.ts @@ -5,7 +5,7 @@ export const sigAlgs = [ sigAlg: 'rsapss', hashFunction: 'sha256', domainParameter: '3', - keyLength: '3072', + keyLength: '4096', checkNullifier: true, }, { diff --git a/common/src/utils/circuitsName.ts b/common/src/utils/circuitsName.ts index a876f4e6..3d65107c 100644 --- a/common/src/utils/circuitsName.ts +++ b/common/src/utils/circuitsName.ts @@ -31,7 +31,7 @@ export function getCircuitNameFromPassportData(passportData: PassportData) { const saltLength = (parsedDsc.publicKeyDetails as PublicKeyDetailsRSAPSS).saltLength; const bits = (parsedDsc.publicKeyDetails as PublicKeyDetailsRSAPSS).bits; if (parseInt(bits) <= 4096) { - return `register_${dgHashAlgo}_${eContentHashAlgo}_${signedAttrHashAlgo}_${sigAlg}_${exponent}_${saltLength}_${4096}`; + return `register_${dgHashAlgo}_${eContentHashAlgo}_${signedAttrHashAlgo}_${sigAlg}_${exponent}_${saltLength}_${bits}`; } else { throw new Error(`Unsupported key length: ${bits}`); }