자잘한 리팩토링

This commit is contained in:
static committed 2025-01-09 03:56:06 +09:00
1 parent 66daebe577
commit 8873337ede
13 files changed
+46 -64

No files matched your search

@@ -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 (