Skip to content

Commit 531d997

Browse files
jeeanribeiroTuditi
andauthored
enhancement: removes kdbx and all its related contents (#4890)
Co-authored-by: Tuditi <[email protected]>
1 parent 9934f7a commit 531d997

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+6
-236
lines changed

packages/desktop/electron/electronApi.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const PincodeManager = require('./lib/pincodeManager')
55
const DeepLinkManager = require('./lib/deepLinkManager')
66
const NotificationManager = require('./lib/notificationManager')
77
const { menuState } = require('./lib/menuState')
8-
const kdbx = require('./lib/kdbx')
98
const { hookErrorLogger } = require('shared/lib/shell/errorLogger')
109

1110
let activeProfileId = null
@@ -104,19 +103,6 @@ const ElectronApi = {
104103
})
105104
})
106105
},
107-
108-
/**
109-
* Validates Seed Vault
110-
*
111-
* @method validateSeedVault
112-
*
113-
* @param {Buffer} buffer
114-
*
115-
* @returns {boolean}
116-
*/
117-
validateSeedVault(buffer) {
118-
return kdbx.checkFormat(buffer)
119-
},
120106
/**
121107
* Gets directory for app's configuration files
122108
*

packages/desktop/electron/lib/kdbx.js

Lines changed: 0 additions & 85 deletions
This file was deleted.

packages/desktop/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"argon2": "^0.27.1",
3333
"electron-log": "^4.3.1",
3434
"electron-updater": "^4.3.5",
35-
"kdbxweb": "^1.14.4",
3635
"keytar": "^7.9.0",
3736
"node-machine-id": "^1.1.12",
3837
"shared": "0.0.0"

packages/mobile/capacitor/capacitorApi.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ export const CapacitorApi: IPlatform = {
5151

5252
importLegacySeed: () => new Promise<string>(() => {}),
5353

54-
validateSeedVault: () => new Promise<boolean>(() => {}),
55-
5654
getUserDataPath: () =>
5755
new Promise<string>((resolve) => {
5856
resolve('DATA')
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import { SEEDVAULT_REGEX, STRONGHOLD_REGEX } from '../constants'
1+
import { STRONGHOLD_REGEX } from '../constants'
22
import { ProfileRecoveryType } from '../enums'
33
import { updateOnboardingProfile } from '../stores'
44

55
export function setProfileRecoveryTypeFromFilename(filename: string): void {
6-
if (SEEDVAULT_REGEX.test(filename)) {
7-
updateOnboardingProfile({ recoveryType: ProfileRecoveryType.SeedVault })
8-
} else if (STRONGHOLD_REGEX.test(filename)) {
6+
if (STRONGHOLD_REGEX.test(filename)) {
97
updateOnboardingProfile({ recoveryType: ProfileRecoveryType.Stronghold })
108
}
119
}

packages/shared/lib/contexts/onboarding/constants/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export * from './default-stronghold-password.constant'
2-
export * from './seedvault-regex.constant'
32
export * from './shimmer-claiming-account-recovery-configuration.constant'
43
export * from './shimmer-claiming-account-sync-options.constant'
54
export * from './shimmer-claiming-profile-manager-directory-name.constant'

packages/shared/lib/contexts/onboarding/constants/seedvault-regex.constant.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/shared/lib/contexts/onboarding/enums/profile-recovery-type.enum.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export enum ProfileRecoveryType {
44
Mnemonic = 'mnemonic',
55
Ledger = 'ledger',
66
Seed = 'seed',
7-
SeedVault = 'seedVault',
87
Stronghold = 'stronghold',
98
TrinityLedger = 'trinityLedger',
109
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { SEEDVAULT_REGEX, STRONGHOLD_REGEX } from '../constants'
1+
import { STRONGHOLD_REGEX } from '../constants'
22
import { UnsupportedBackupFileError } from '../errors'
33

44
export function validateBackupFile(filename: string): void {
5-
if (!STRONGHOLD_REGEX.test(filename) && !SEEDVAULT_REGEX.test(filename)) {
5+
if (!STRONGHOLD_REGEX.test(filename)) {
66
throw new UnsupportedBackupFileError()
77
}
88
}

packages/shared/lib/tests/__mocks__/platform.mock.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ const Platform: IPlatform = {
7777
return Promise.resolve(undefined)
7878
},
7979
updateMenu(attribute: string, value: unknown): void {},
80-
validateSeedVault(buffer: unknown): Promise<boolean> {
81-
return Promise.resolve(false)
82-
},
8380
copyFile(copyFilePath: string, destinationFilePath: string): Promise<void> {
8481
return Promise.resolve()
8582
},

0 commit comments

Comments
 (0)