Skip to content

Commit b77cd13

Browse files
committed
Merge branch 'frontend-bb01-remove-hiddenwallet'
2 parents 390d8f6 + 4db3481 commit b77cd13

File tree

6 files changed

+1
-261
lines changed

6 files changed

+1
-261
lines changed

frontends/web/src/api/bitbox01.ts

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export type DeviceInfo = {
2121
id: string;
2222
lock: boolean;
2323
name: string;
24-
new_hidden_wallet: boolean;
2524
seeded: boolean;
2625
serial: string;
2726
sdcard: boolean;

frontends/web/src/hooks/sdcard.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ describe('useSDCard', () => {
5555
id: '0001',
5656
lock: false,
5757
name: 'some name',
58-
new_hidden_wallet: false,
5958
seeded: false,
6059
serial: 'anystring',
6160
sdcard: true,

frontends/web/src/locales/en/app.json

+1-27
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@
177177
"error": {
178178
"e10000": "Current device password incorrect.",
179179
"e10001": "Failed to replace device password",
180-
"e102": "The password must consist of at least 4 characters.",
181-
"e112": "Hidden device password cannot be the same as the main device password."
180+
"e102": "The password must consist of at least 4 characters."
182181
}
183182
},
184183
"bitbox02Interact": {
@@ -385,7 +384,6 @@
385384
"dismiss": "Dismiss",
386385
"done": "Done",
387386
"download": "Download",
388-
"hiddenwallet": "Create hidden wallet",
389387
"next": "Next",
390388
"ok": "OK",
391389
"previous": "Previous",
@@ -1002,14 +1000,6 @@
10021000
"ejectSD": {
10031001
"text": "You can remove the microSD card from the BitBox at any time as long as you are not in the process of creating or restoring a backup.",
10041002
"title": "How can I eject the microSD card?"
1005-
},
1006-
"hiddenWallet": {
1007-
"text": "It is a second wallet on the same device protected by a different device password and recovery password, which you can use for plausible deniability. The same backup seed is used for both your normal and hidden wallet, so no additional backup is required.",
1008-
"title": "What is a hidden wallet?"
1009-
},
1010-
"legacyHiddenWallet": {
1011-
"text": "First click the button below (available if the BitBox is unlocked with the main device password and 2FA is disabled), then replug your Bitbox and unlock it with your hidden device password.",
1012-
"title": "How do I access the legacy hidden wallet?"
10131003
}
10141004
},
10151005
"bitsurance": {
@@ -1254,16 +1244,6 @@
12541244
"headerssync": {
12551245
"blocksSynced": "{{blocks}} blocks synced"
12561246
},
1257-
"hiddenWallet": {
1258-
"info1HTML": "For plausible deniability purposes, a hidden wallet can be created based on a <strong>different</strong> device password + recovery password combination.",
1259-
"info2HTML": "Define the device password and recovery password you want to associate with your hidden wallet below. The device password and recovery password must be <strong>different</strong> from the ones you defined for your primary wallet.",
1260-
"passwordLabel": "Hidden recovery password",
1261-
"passwordPlaceholder": "Please confirm hidden recovery password",
1262-
"pinLabel": "Hidden device password",
1263-
"pinRepeatLabel": "Repeat hidden device password",
1264-
"pinRepeatPlaceholder": "Please confirm hidden device password",
1265-
"success": "Hidden wallet created successfully. Replug your BitBox to unlock it."
1266-
},
12671247
"initialize": {
12681248
"create": "Set device password",
12691249
"creating": "Setting device password…",
@@ -1287,12 +1267,6 @@
12871267
"language": {
12881268
"title": "Select language"
12891269
},
1290-
"legacyhiddenwallet": {
1291-
"disable": "Disable legacy hidden wallet",
1292-
"enable": "Enable legacy hidden wallet",
1293-
"successDisable": "Successfully disabled the legacy hidden wallet.",
1294-
"successEnable": "Successfully enabled the legacy hidden wallet. Replug your BitBox and enter the hidden device password to access the legacy hidden wallet."
1295-
},
12961270
"loading": "loading…",
12971271
"manageAccounts": {
12981272
"accountHidden": "This account has been hidden from your watch-only accounts. To see it again, please plug in your BitBox.",

frontends/web/src/routes/device/bitbox01/settings/components/hiddenwallet.jsx

-145
This file was deleted.

frontends/web/src/routes/device/bitbox01/settings/components/legacyhiddenwallet.jsx

-57
This file was deleted.

frontends/web/src/routes/device/bitbox01/settings/settings.tsx

-30
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ import { Entry } from '../../../../components/guide/entry';
2525
import { Header } from '../../../../components/layout';
2626
import { Spinner } from '../../../../components/spinner/Spinner';
2727
import Blink from './components/blink';
28-
import LegacyHiddenWallet from './components/legacyhiddenwallet';
2928
import RandomNumber from './components/randomnumber';
30-
import HiddenWallet from './components/hiddenwallet';
3129
import ChangePIN from './components/changepin';
3230
import Reset from './components/reset';
3331
import UpgradeFirmware from '../components/upgradefirmware';
@@ -43,30 +41,24 @@ export const Settings = ({ deviceID }: Props) => {
4341

4442
const [firmwareVersion, setFirmwareVersion] = useState<string | null>(null);
4543
const [newVersion, setNewVersion] = useState<string | null>(null);
46-
const [lock, setLock] = useState(true);
4744
const [name, setName] = useState<string | null>(null);
4845
const [spinner, setSpinner] = useState(true);
4946
const [sdcard, setSdcard] = useState(false);
5047
const [serial, setSerial] = useState('');
51-
const [newHiddenWallet, setNewHiddenWallet] = useState(true);
5248

5349
useEffect(() => {
5450
const init = async () => {
5551
const deviceInfo = await getDeviceInfo(deviceID);
5652
if (deviceInfo) {
5753
const {
58-
lock,
5954
name,
60-
new_hidden_wallet,
6155
sdcard,
6256
serial,
6357
version,
6458
} = deviceInfo;
6559

6660
setFirmwareVersion(version.replace('v', ''));
67-
setLock(lock);
6861
setName(name);
69-
setNewHiddenWallet(new_hidden_wallet);
7062
setSdcard(sdcard);
7163
setSerial(serial);
7264
setSpinner(false);
@@ -97,16 +89,6 @@ export const Settings = ({ deviceID }: Props) => {
9789
{t('deviceSettings.secrets.manageBackups')}
9890
</SettingsButton>
9991
<ChangePIN deviceID={deviceID} />
100-
{newHiddenWallet ? (
101-
<HiddenWallet deviceID={deviceID} disabled={lock} />
102-
) : (
103-
<LegacyHiddenWallet
104-
deviceID={deviceID}
105-
newHiddenWallet={newHiddenWallet}
106-
disabled={lock}
107-
onChange={setNewHiddenWallet}
108-
/>
109-
)}
11092
<Reset deviceID={deviceID} />
11193
</div>
11294
</div>
@@ -140,18 +122,6 @@ export const Settings = ({ deviceID }: Props) => {
140122
<Guide>
141123
<Entry key="guide.bitbox.ejectBitbox" entry={t('guide.bitbox.ejectBitbox', { returnObjects: true })} />
142124
<Entry key="guide.bitbox.ejectSD" entry={t('guide.bitbox.ejectSD', { returnObjects: true })} />
143-
<Entry key="guide.bitbox.hiddenWallet" entry={t('guide.bitbox.hiddenWallet', { returnObjects: true })} />
144-
{!lock && newHiddenWallet && (
145-
<Entry key="guide.bitbox.legacyHiddenWallet" entry={t('guide.bitbox.legacyHiddenWallet', { returnObjects: true })}>
146-
<p>
147-
<LegacyHiddenWallet
148-
deviceID={deviceID}
149-
newHiddenWallet={newHiddenWallet}
150-
onChange={setNewHiddenWallet}
151-
/>
152-
</p>
153-
</Entry>
154-
)}
155125
</Guide>
156126
</div>
157127
);

0 commit comments

Comments
 (0)