From 2639be3feca396bfcb98dee27df59e5539e29f17 Mon Sep 17 00:00:00 2001 From: Georgi Tsonev Date: Thu, 11 Jan 2024 10:41:31 +0200 Subject: [PATCH] fix: pass the correct parameter to getPublicKey() --- packages/biometric-ed25519/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/biometric-ed25519/src/index.ts b/packages/biometric-ed25519/src/index.ts index df4e2d0246..5dbd96acac 100644 --- a/packages/biometric-ed25519/src/index.ts +++ b/packages/biometric-ed25519/src/index.ts @@ -119,7 +119,7 @@ export const getKeys = async (username: string): Promise<[KeyPair, KeyPair]> => const firstEDSecret = await firstEdSha256.digest(); const firstEDPublic = ed25519.getPublicKey(firstEDSecret); const secondEDSecret = await secondEdSha256.digest(); - const secondEDPublic = ed25519.getPublicKey(firstEDSecret); + const secondEDPublic = ed25519.getPublicKey(secondEDSecret); const firstKeyPair = KeyPair.fromString(baseEncode(new Uint8Array(Buffer.concat([firstEDSecret, Buffer.from(firstEDPublic)])))); const secondKeyPair = KeyPair.fromString(baseEncode(new Uint8Array(Buffer.concat([secondEDSecret, Buffer.from(secondEDPublic)])))); return [firstKeyPair, secondKeyPair];