Skip to content

Commit 0a22978

Browse files
committed
Change seed phrase termonology, as is confusing, since you can make your own code up
1 parent 970481a commit 0a22978

File tree

8 files changed

+21
-19
lines changed

8 files changed

+21
-19
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ android/app/build
3838
android/build
3939
android/capacitor-cordova-android-plugins/build
4040

41-
browser-extension/web-ext-artifacts
41+
browser-extension/web-ext-artifacts
42+
43+
server/symlink.sh

PRIVACY.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ TrustyNotes is committed to protecting your privacy. This Privacy Policy explain
1010

1111
### Notes and Content
1212
- All notes and content you create are encrypted end-to-end using AES-GCM encryption
13-
- Encryption keys are derived from your seed phrase, which is never transmitted to our servers
13+
- Encryption keys are derived from your sync code, which is never transmitted to our servers
1414
- Notes are stored locally in your browser and optionally synchronized with our servers in encrypted form
1515
- We cannot access, read, or decrypt your notes as we don't have access to your encryption keys
1616

@@ -23,7 +23,7 @@ TrustyNotes is committed to protecting your privacy. This Privacy Policy explain
2323
### Data Storage
2424
- Notes are stored locally in your browser's storage
2525
- If sync is enabled, encrypted notes are stored on our servers
26-
- Your seed phrase is stored locally and optionally in the browser extension storage
26+
- Your sync code is stored locally and optionally in the browser extension storage
2727
- We use MongoDB for server-side storage of encrypted data
2828

2929
## Data Security
@@ -36,7 +36,7 @@ TrustyNotes is committed to protecting your privacy. This Privacy Policy explain
3636
We do not share your data with third parties. Your encrypted notes are only:
3737
- Stored locally on your devices
3838
- Transmitted to our servers for sync purposes (if enabled)
39-
- Accessible only with your seed phrase
39+
- Accessible only with your sync code
4040

4141
## Browser Extension
4242
The TrustyNotes browser extension:
@@ -51,7 +51,7 @@ You have the right to:
5151
- Delete your notes locally and from our servers
5252
- Choose whether to enable synchronization
5353
- Control which servers you sync with
54-
- Generate new seed phrases
54+
- Generate new sync codes
5555

5656
## Data Retention
5757
- Deleted notes are permanently removed after 24 hours

browser-extension/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function encryptAndStoreNotes(notes) {
6262
if (!cryptoService) {
6363
const settings = await chrome.storage.local.get(['seed_phrase']);
6464
if (!settings.seed_phrase) {
65-
console.error('No seed phrase set');
65+
console.error('No sync code set');
6666
return;
6767
}
6868
cryptoService = await CryptoService.new(settings.seed_phrase);

browser-extension/popup/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async function initializeCrypto() {
127127
if (!settings.seed_phrase) {
128128
const webAppSettings = await getWebAppSettings();
129129
if (!webAppSettings?.seed_phrase) {
130-
throw new Error('No seed phrase set');
130+
throw new Error('No sync code set');
131131
}
132132
settings = { seed_phrase: webAppSettings.seed_phrase };
133133
}

src/components/SyncSettings.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function SyncSettings({ onSync }: SyncSettingsProps) {
165165
if (!seedPhrase) {
166166
notifications.show({
167167
title: 'Error',
168-
message: 'Please enter a seed phrase',
168+
message: 'Please enter a sync code',
169169
color: 'red',
170170
});
171171
return;
@@ -223,10 +223,10 @@ export function SyncSettings({ onSync }: SyncSettingsProps) {
223223
await saveSettings({ seed_phrase: mnemonic });
224224
setShowNewSeedPhrase(true);
225225
} catch (error) {
226-
console.error('Failed to generate seed phrase:', error);
226+
console.error('Failed to generate sync code:', error);
227227
notifications.show({
228228
title: 'Error',
229-
message: 'Failed to generate seed phrase',
229+
message: 'Failed to generate sync code',
230230
color: 'red',
231231
});
232232
}
@@ -275,8 +275,8 @@ export function SyncSettings({ onSync }: SyncSettingsProps) {
275275
</Group>
276276

277277
<PasswordInput
278-
label="Seed Phrase"
279-
description="Enter your seed phrase to sync across devices"
278+
label="Sync Code"
279+
description="Enter your sync code to sync across devices! This can be generated automatically or you can enter your own!"
280280
value={seedPhrase}
281281
onChange={(e) => {
282282
setSeedPhrase(e.currentTarget.value);
@@ -295,7 +295,7 @@ export function SyncSettings({ onSync }: SyncSettingsProps) {
295295
variant="light"
296296
onClick={generateNewSeedPhrase}
297297
>
298-
Generate New Seed Phrase
298+
Generate New Sync Code
299299
</Button>
300300
</Group>
301301

@@ -364,7 +364,7 @@ export function SyncSettings({ onSync }: SyncSettingsProps) {
364364
<Modal
365365
opened={showNewSeedPhrase}
366366
onClose={() => setShowNewSeedPhrase(false)}
367-
title="Your New Seed Phrase"
367+
title="Your New Sync Code"
368368
>
369369
<Stack>
370370
<Text fw={500} c="red">

src/components/SyncSetup.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function SyncSetup({ onSync }: SyncSetupProps) {
1515
if (!seedPhrase) {
1616
notifications.show({
1717
title: 'Error',
18-
message: 'Please enter a seed phrase',
18+
message: 'Please enter a sync code',
1919
color: 'red',
2020
});
2121
return;
@@ -57,11 +57,11 @@ export function SyncSetup({ onSync }: SyncSetupProps) {
5757

5858
return (
5959
<Stack>
60-
<Text>Enter your seed phrase to sync across devices:</Text>
60+
<Text>Enter your sync code to sync across devices:</Text>
6161
<PasswordInput
6262
value={seedPhrase}
6363
onChange={(e) => setSeedPhrase(e.currentTarget.value)}
64-
placeholder="Enter seed phrase"
64+
placeholder="Enter sync code"
6565
description="This phrase is used to encrypt your notes. Keep it safe!"
6666
/>
6767
<Button

src/hooks/useAutoSync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function useAutoSync(auto_sync: boolean, sync_interval: number) {
1515
isSyncingRef.current = true;
1616
const settings = await WebStorageService.getSyncSettings();
1717
if (!settings.seed_phrase) {
18-
throw new Error('No seed phrase configured');
18+
throw new Error('No sync code configured');
1919
}
2020

2121
const cryptoService = await CryptoService.new(settings.seed_phrase);

src/services/cryptoService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class CryptoService {
4343
return words.join(' ');
4444
} catch (error) {
4545
console.error('Failed to generate mnemonic:', error);
46-
throw new Error('Failed to generate seed phrase');
46+
throw new Error('Failed to generate sync code');
4747
}
4848
}
4949

0 commit comments

Comments
 (0)