Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Recognize more of the names wallets and their keys are saved under
Țugui Dragoșc6592fc7e894
diff --git a/Packages/PeelCore/Sources/PeelCore/Support/FileSize.swift b/Packages/PeelCore/Sources/PeelCore/Support/FileSize.swiftindex 3f693597..cd10d1af 100644--- a/Packages/PeelCore/Sources/PeelCore/Support/FileSize.swift+++ b/Packages/PeelCore/Sources/PeelCore/Support/FileSize.swift@@ -258,25 +258,34 @@ public enum FileSize {static let repositoryMarkers: Set<String> = [".git", ".hg", ".svn", ".jj", ".pijul", "_darcs"]/// True for the names wallets and their keys go by, as each project's own documentation or source gives them:- /// `wallet.dat` and names ending in it (Bitcoin, Litecoin and their forks, Zcash's Zingo), a `wallets` or- /// `wallets2` folder (Electrum, Sparrow, Wasabi, Bitcoin Core, Green), `keystore` and `keystores` (Ethereum,- /// Foundry, and the key an Android app is signed with), `*.wallet` (Bisq, Exodus, Kaspa), `*.keys` (Monero),- /// `*.mmdbdoc_v1` (MyMonero), `hsm_secret`, `emergency.recover`, and `channel.backup` (Lightning nodes),- /// `seed.dat` (phoenixd), `wallet.seed` (Grin), `mnemonics` (Liana), `keyring-file`, `keyring-test`, and- /// `priv_validator_key.json` (Cosmos), `sui.keystore`, `sqlite_wallets` (Algorand), `encryption-identity.txt`- /// (Zallet), and `.aptos`.+ /// `wallet.dat` and names ending in it (Bitcoin, Litecoin and their forks, Zcash's Zingo), its dated backups+ /// `wallet.dat.<date>` (Dash, PIVX, Firo), `*.legacy.bak` (Bitcoin Core's copy of a migrated wallet), a `wallets`+ /// or `wallets2` folder (Electrum, Sparrow, Wasabi, Bitcoin Core, Green), `WalletBackups` (Wasabi, Ginger),+ /// `keystore` and `keystores` (Ethereum, Foundry, and the key an Android app is signed with), `*.wallet` (Bisq,+ /// Exodus, Kaspa), `*.keys` (Monero), `*.mmdbdoc_v1` (MyMonero), `hsm_secret`, `emergency.recover`, and+ /// `channel.backup` (Lightning nodes), `node_seed.dat` and `channel_seed.dat` (Eclair), `seed.dat` (phoenixd),+ /// `wallet.seed` (Grin), `mnemonics` (Liana), `keyring-file`, `keyring-test`, and `priv_validator_key.json`+ /// (Cosmos), `voting-keystore.json` (Lighthouse), `all-accounts.keystore.json` (Prysm), `masterseed.json` (Clef),+ /// `starknet_open_zeppelin_accounts.json` (sncast), `wallets.ldb` (Nano), `*.jmdat` (JoinMarket),+ /// `zecwallet-light-wallet.backup.*` (Zecwallet Lite), `sui.keystore`, `sqlite_wallets` (Algorand),+ /// `encryption-identity.txt` (Zallet), and `.aptos`.static func isWallet(_ name: String) -> Bool {let name = name.lowercased()return walletNames.contains(name) || walletSuffixes.contains { name.hasSuffix($0) }+ || walletPrefixes.contains { name.hasPrefix($0) }}private static let walletNames: Set<String> = [- "wallets", "wallets2", "keystore", "keystores", "hsm_secret", "emergency.recover", "channel.backup",- "seed.dat", "wallet.seed", "mnemonics", "keyring-file", "keyring-test", "priv_validator_key.json",- "sui.keystore", "sqlite_wallets", "encryption-identity.txt", ".aptos",+ "wallets", "wallets2", "walletbackups", "keystore", "keystores", "hsm_secret", "emergency.recover",+ "channel.backup", "node_seed.dat", "channel_seed.dat", "seed.dat", "wallet.seed", "mnemonics", "keyring-file",+ "keyring-test", "priv_validator_key.json", "voting-keystore.json", "all-accounts.keystore.json",+ "masterseed.json", "starknet_open_zeppelin_accounts.json", "wallets.ldb", "sui.keystore", "sqlite_wallets",+ "encryption-identity.txt", ".aptos",]- private static let walletSuffixes = ["wallet.dat", ".wallet", ".keys", ".mmdbdoc_v1"]+ private static let walletSuffixes = ["wallet.dat", ".legacy.bak", ".wallet", ".keys", ".mmdbdoc_v1", ".jmdat"]++ private static let walletPrefixes = ["wallet.dat.", "zecwallet-light-wallet.backup."]}/// What is known about the folders being walked.diff --git a/Packages/PeelCore/Tests/PeelCoreTests/FileSizeTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/FileSizeTests.swiftindex 37bd84bb..8f79ce41 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/FileSizeTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/FileSizeTests.swift@@ -458,6 +458,9 @@ struct FileSizeTests {"exodus.wallet", "mine.keys", "account.mmdbdoc_v1", "hsm_secret", "emergency.recover", "channel.backup","seed.dat", "wallet.seed", "mnemonics", "keyring-file", "keyring-test", "priv_validator_key.json","sui.keystore", "sqlite_wallets", "encryption-identity.txt", ".aptos", "Wallet.DAT",+ "wallet.dat.2026-10-05-12-30", "zecwallet-light-wallet.backup.1767225600.dat", "node_seed.dat",+ "channel_seed.dat", "voting-keystore.json", "all-accounts.keystore.json", "masterseed.json", "wallets.ldb",+ "WalletBackups", "starknet_open_zeppelin_accounts.json", "wallet.jmdat", "default_wallet_1767225600.legacy.bak",]for name in wallets {#expect(FileSize.isWallet(name), "\(name) was not read as a wallet")