diff --git a/src/storage/store/restore.ts b/src/storage/store/restore.ts index e689d14a..f0cedb36 100644 --- a/src/storage/store/restore.ts +++ b/src/storage/store/restore.ts @@ -7,7 +7,6 @@ import { SecureStore } from './SecureStore' export async function saveSeed(seed: Uint8Array) { try { const str = Buffer.from(seed).toString('base64') - l('[saveSeed] base64 ', { seed, base64: str }) await SecureStore.set(STORE_KEYS.seed, str) } catch (e) { l('[saveSeed] error', { e }) @@ -19,9 +18,7 @@ export async function getSeed() { try { const str = await SecureStore.get(STORE_KEYS.seed) const buffer = str ? Buffer.from(str, 'base64') : undefined - const seed = buffer ? new Uint8Array(buffer) : undefined - l('[getSeed] base64 ', { stored: str, seed }) - return seed + return buffer ? new Uint8Array(buffer) : undefined } catch (e) { l('[getSeed] error', { e }) throw new Error('[getSeed] error')