Skip to content

Commit

Permalink
hotfix mobile app - should not be deployed on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
remicolin committed Jan 10, 2025
1 parent e2c5829 commit 70854be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions common/src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ export const saltLengths = [64, 48, 32];
export const MAX_PADDED_ECONTENT_LEN: Partial<Record<(typeof hashAlgos)[number], number>> = {
sha1: 320,
sha224: 384,
sha256: 448,
sha256: 384, // will update this before eth Denver, 448 is the correct value - we need to keep 384 for the circuits in prod though
sha384: 640,
sha512: 768,
};

export const MAX_PADDED_SIGNED_ATTR_LEN: Record<(typeof hashAlgos)[number], number> = {
sha1: 128,
sha1: 192, // will update this before eth Denver, 128 is the correct value - we need to keep 192 for the circuits in prod though
sha224: 128,
sha256: 128,
sha256: 192, // will update this before eth Denver, 128 is the correct value - we need to keep 192 for the circuits in prod though
sha384: 256,
sha512: 256,
};
Expand Down Expand Up @@ -129,10 +129,10 @@ export const circuitToSelectorMode = {
};

export const MAX_DATAHASHES_LEN = 320; // max formatted and concatenated datagroup hashes length in bytes
export const n_dsc = 120;
export const n_dsc = 64;
export const n_dsc_3072 = 120;
export const n_dsc_4096 = 120;
export const k_dsc = 35;
export const k_dsc = 32;
export const k_dsc_3072 = 35; //48;
export const k_dsc_4096 = 35;
export const n_csca = 120;
Expand Down
2 changes: 1 addition & 1 deletion common/src/utils/genMockPassportData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function generateDataGroupHashes(mrzHash: number[], hashLen: number): [number, n
[4, generateRandomBytes(hashLen)],
[5, generateRandomBytes(hashLen)],
[7, generateRandomBytes(hashLen)],
[11, generateRandomBytes(hashLen)],
// [11, generateRandomBytes(hashLen)],
[12, generateRandomBytes(hashLen)],
[14, generateRandomBytes(hashLen)],
];
Expand Down

0 comments on commit 70854be

Please sign in to comment.