Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
raymens committed Feb 13, 2024
1 parent a099dc8 commit f1d5838
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mobile/src/utils/hooks/useDeviceVerification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import { sha512 } from "@noble/hashes/sha512";
import { fromByteArray } from "react-native-quick-base64";

ed.etc.sha512Sync = (...m) => sha512(ed.etc.concatBytes(...m));

// tslint:disable-next-line: 2722
ed.etc.sha512Async = (...m) => Promise.resolve(ed.etc.sha512Sync(...m));

export function useDeviceVerification() {
Expand All @@ -25,8 +23,8 @@ export function useDeviceVerification() {
const privKey = ed.utils.randomPrivateKey();
const pubKey = ed.getPublicKey(privKey);

const privKeyBase64 = fromByteArray(privKey); //Buffer.from(privKey).toString("base64");
const pubKeyBase64 = fromByteArray(pubKey); //Buffer.from(pubKey).toString("base64");
const privKeyBase64 = fromByteArray(privKey);
const pubKeyBase64 = fromByteArray(pubKey);
return { pubKey: pubKeyBase64, privKey: privKeyBase64 };
};

Expand Down

0 comments on commit f1d5838

Please sign in to comment.