mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-16 06:58:46 +00:00
자잘한 리팩토링
This commit is contained in:
@@ -42,12 +42,9 @@
|
||||
|
||||
const registerPubKeys = async () => {
|
||||
if (!$clientKeyStore) {
|
||||
throw new Error("Failed to find key pair");
|
||||
throw new Error("Failed to find client keys");
|
||||
}
|
||||
|
||||
isBeforeContinueModalOpen = false;
|
||||
isBeforeContinueBottomSheetOpen = false;
|
||||
|
||||
try {
|
||||
if (
|
||||
!(await requestClientRegistration(
|
||||
|
||||
@@ -36,10 +36,12 @@ export const serializeClientKeys = (
|
||||
};
|
||||
|
||||
export const storeClientKeys = async (clientKeys: ClientKeys) => {
|
||||
await storeClientKey(clientKeys.encryptKey, "encrypt");
|
||||
await storeClientKey(clientKeys.decryptKey, "decrypt");
|
||||
await storeClientKey(clientKeys.signKey, "sign");
|
||||
await storeClientKey(clientKeys.verifyKey, "verify");
|
||||
await Promise.all([
|
||||
storeClientKey(clientKeys.encryptKey, "encrypt"),
|
||||
storeClientKey(clientKeys.decryptKey, "decrypt"),
|
||||
storeClientKey(clientKeys.signKey, "sign"),
|
||||
storeClientKey(clientKeys.verifyKey, "verify"),
|
||||
]);
|
||||
};
|
||||
|
||||
export const requestInitialMasterKeyRegistration = async (
|
||||
|
||||
Reference in New Issue
Block a user