diff --git a/holo-key-manager-extension/src/lib/helpers/encryption.ts b/holo-key-manager-extension/src/lib/helpers/encryption.ts index b2820ae..b0a075c 100644 --- a/holo-key-manager-extension/src/lib/helpers/encryption.ts +++ b/holo-key-manager-extension/src/lib/helpers/encryption.ts @@ -71,8 +71,7 @@ const calcDhtBytes = (data: Uint8Array): Uint8Array => { export const extendUint8Array = (inputArray: Uint8Array): Uint8Array => { const prefix = new Uint8Array([132, 32, 36]); - const combinedArray = new Uint8Array([...prefix, ...inputArray]); - const suffix = calcDhtBytes(combinedArray); + const suffix = calcDhtBytes(inputArray); - return new Uint8Array([...combinedArray, ...suffix]); + return new Uint8Array([...prefix, ...inputArray, ...suffix]); }; diff --git a/holo-key-manager-extension/src/lib/queries/applicationQueries.ts b/holo-key-manager-extension/src/lib/queries/applicationQueries.ts index 80d8b8e..1527c14 100644 --- a/holo-key-manager-extension/src/lib/queries/applicationQueries.ts +++ b/holo-key-manager-extension/src/lib/queries/applicationQueries.ts @@ -117,18 +117,18 @@ export function createSignInWithKeyMutation(queryClient: QueryClient) { const currentAuthenticatedAppsListData = await fetchAuthenticatedAppsList(); - const newIndex = currentAppsList.findIndex( + const index = currentAppsList.findIndex( (app) => app.happId === happId && app.keyName === keyName ); - const pubKey = await deriveSignPubKey(newIndex); + const pubKey = await deriveSignPubKey(index); storageService.set({ key: AUTHENTICATED_APPS_LIST, value: { ...currentAuthenticatedAppsListData, [happId]: { - index: newIndex, + index: index, origin } }, diff --git a/holo-key-manager-extension/static/manifest.json b/holo-key-manager-extension/static/manifest.json index d3ca349..803acdf 100644 --- a/holo-key-manager-extension/static/manifest.json +++ b/holo-key-manager-extension/static/manifest.json @@ -1,7 +1,7 @@ { "name": "Holo key manager", "description": "A browser extension to manage holo keys", - "version": "0.0.67", + "version": "0.0.68", "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiAtKvbHNTN3O2BLRZH7RkLczaMLenSeZu+YP+KomPQPZ18nt4DY9boIN/+GWts7gCzEeQq59l8edGdF2P7xAbsRxYR88+zFEbxMtIyfyqJZIlzXwnvPJkwGu/S6arNtX48K7q1+xnJEE7VyeYSj6/i2LR+LmPigCzY9JCP7+SmWVeYbdm3kZmReK0ecfh15RXSNjZpXJUgrbea/RVxweggYKnmhhOUBmuJSCLoWTXIuJPBMwGQK1O2GKBqHOq94bPVSF7j+4WzSpPan70ZZJX/reFsOFE/idfFN6wbizjR1Ne50Po03kudEmfQgoqUhVpd0wP8A3YbqE7ODdZcCPPwIDAQAB", "manifest_version": 3, "action": {