From 0a22978c968304f2f82e4142fba884e5a70acdaf Mon Sep 17 00:00:00 2001 From: 0xGingi <0xgingi@0xgingi.com> Date: Sun, 29 Dec 2024 15:00:54 +0000 Subject: [PATCH] Change seed phrase termonology, as is confusing, since you can make your own code up --- .gitignore | 4 +++- PRIVACY.md | 8 ++++---- browser-extension/background.js | 2 +- browser-extension/popup/popup.js | 2 +- src/components/SyncSettings.tsx | 14 +++++++------- src/components/SyncSetup.tsx | 6 +++--- src/hooks/useAutoSync.ts | 2 +- src/services/cryptoService.ts | 2 +- 8 files changed, 21 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 0300832..6a4e106 100644 --- a/.gitignore +++ b/.gitignore @@ -38,4 +38,6 @@ android/app/build android/build android/capacitor-cordova-android-plugins/build -browser-extension/web-ext-artifacts \ No newline at end of file +browser-extension/web-ext-artifacts + +server/symlink.sh \ No newline at end of file diff --git a/PRIVACY.md b/PRIVACY.md index 4e58b41..762b028 100644 --- a/PRIVACY.md +++ b/PRIVACY.md @@ -10,7 +10,7 @@ TrustyNotes is committed to protecting your privacy. This Privacy Policy explain ### Notes and Content - All notes and content you create are encrypted end-to-end using AES-GCM encryption -- Encryption keys are derived from your seed phrase, which is never transmitted to our servers +- Encryption keys are derived from your sync code, which is never transmitted to our servers - Notes are stored locally in your browser and optionally synchronized with our servers in encrypted form - We cannot access, read, or decrypt your notes as we don't have access to your encryption keys @@ -23,7 +23,7 @@ TrustyNotes is committed to protecting your privacy. This Privacy Policy explain ### Data Storage - Notes are stored locally in your browser's storage - If sync is enabled, encrypted notes are stored on our servers -- Your seed phrase is stored locally and optionally in the browser extension storage +- Your sync code is stored locally and optionally in the browser extension storage - We use MongoDB for server-side storage of encrypted data ## Data Security @@ -36,7 +36,7 @@ TrustyNotes is committed to protecting your privacy. This Privacy Policy explain We do not share your data with third parties. Your encrypted notes are only: - Stored locally on your devices - Transmitted to our servers for sync purposes (if enabled) -- Accessible only with your seed phrase +- Accessible only with your sync code ## Browser Extension The TrustyNotes browser extension: @@ -51,7 +51,7 @@ You have the right to: - Delete your notes locally and from our servers - Choose whether to enable synchronization - Control which servers you sync with -- Generate new seed phrases +- Generate new sync codes ## Data Retention - Deleted notes are permanently removed after 24 hours diff --git a/browser-extension/background.js b/browser-extension/background.js index 8939d39..b78bede 100644 --- a/browser-extension/background.js +++ b/browser-extension/background.js @@ -62,7 +62,7 @@ async function encryptAndStoreNotes(notes) { if (!cryptoService) { const settings = await chrome.storage.local.get(['seed_phrase']); if (!settings.seed_phrase) { - console.error('No seed phrase set'); + console.error('No sync code set'); return; } cryptoService = await CryptoService.new(settings.seed_phrase); diff --git a/browser-extension/popup/popup.js b/browser-extension/popup/popup.js index 057e487..57e0aaf 100644 --- a/browser-extension/popup/popup.js +++ b/browser-extension/popup/popup.js @@ -127,7 +127,7 @@ async function initializeCrypto() { if (!settings.seed_phrase) { const webAppSettings = await getWebAppSettings(); if (!webAppSettings?.seed_phrase) { - throw new Error('No seed phrase set'); + throw new Error('No sync code set'); } settings = { seed_phrase: webAppSettings.seed_phrase }; } diff --git a/src/components/SyncSettings.tsx b/src/components/SyncSettings.tsx index 9ddbcb7..8203255 100644 --- a/src/components/SyncSettings.tsx +++ b/src/components/SyncSettings.tsx @@ -165,7 +165,7 @@ export function SyncSettings({ onSync }: SyncSettingsProps) { if (!seedPhrase) { notifications.show({ title: 'Error', - message: 'Please enter a seed phrase', + message: 'Please enter a sync code', color: 'red', }); return; @@ -223,10 +223,10 @@ export function SyncSettings({ onSync }: SyncSettingsProps) { await saveSettings({ seed_phrase: mnemonic }); setShowNewSeedPhrase(true); } catch (error) { - console.error('Failed to generate seed phrase:', error); + console.error('Failed to generate sync code:', error); notifications.show({ title: 'Error', - message: 'Failed to generate seed phrase', + message: 'Failed to generate sync code', color: 'red', }); } @@ -275,8 +275,8 @@ export function SyncSettings({ onSync }: SyncSettingsProps) { { setSeedPhrase(e.currentTarget.value); @@ -295,7 +295,7 @@ export function SyncSettings({ onSync }: SyncSettingsProps) { variant="light" onClick={generateNewSeedPhrase} > - Generate New Seed Phrase + Generate New Sync Code @@ -364,7 +364,7 @@ export function SyncSettings({ onSync }: SyncSettingsProps) { setShowNewSeedPhrase(false)} - title="Your New Seed Phrase" + title="Your New Sync Code" > diff --git a/src/components/SyncSetup.tsx b/src/components/SyncSetup.tsx index 339b125..39d3f8f 100644 --- a/src/components/SyncSetup.tsx +++ b/src/components/SyncSetup.tsx @@ -15,7 +15,7 @@ export function SyncSetup({ onSync }: SyncSetupProps) { if (!seedPhrase) { notifications.show({ title: 'Error', - message: 'Please enter a seed phrase', + message: 'Please enter a sync code', color: 'red', }); return; @@ -57,11 +57,11 @@ export function SyncSetup({ onSync }: SyncSetupProps) { return ( - Enter your seed phrase to sync across devices: + Enter your sync code to sync across devices: setSeedPhrase(e.currentTarget.value)} - placeholder="Enter seed phrase" + placeholder="Enter sync code" description="This phrase is used to encrypt your notes. Keep it safe!" />