Skip to content

Commit

Permalink
fix: pass the correct parameter to getPublicKey()
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsonevv committed Jan 11, 2024
1 parent db20bf5 commit 2639be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/biometric-ed25519/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 2639be3

Please sign in to comment.