Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Count every wallet place SAFETY.md names

Țugui Dragoșff7fb47698b5
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index c770fcc1..391d791a 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -131,4 +131,12 @@ struct DesktopWalletTests {
#expect(guardian.allowsRemoval(of: home.appending(path: cache)))
}
+
+ @Test func safetyMDCountsEveryPlace() throws {
+ let page = try String(contentsOf: StringCatalogTests.repository.appending(path: "SAFETY.md"), encoding: .utf8)
+ let counts = page.matches(of: /(\d+) places in (all|the table)/).compactMap { Int($0.output.1) }
+
+ #expect(counts.count == 2)
+ #expect(counts.allSatisfy { $0 == ProtectedData.walletKeys.count }, "\(counts) against \(ProtectedData.walletKeys.count)")
+ }
}
diff --git a/SAFETY.md b/SAFETY.md
index 506fdedd..8e57fee8 100644
--- a/SAFETY.md
+++ b/SAFETY.md
@@ -37,7 +37,7 @@ In the Library of every account on the Mac and, for the last rows, in the home f
| `.Trash` | Already-deleted things are not Peel's to delete again. |
| `.ssh`, `.gnupg`, `.aws`, `.password-store` | Keys, credentials, secrets. |
| `.android/debug.keystore`, `.m2/settings-security.xml`, `.gradle/gradle.properties`, `.git-credentials` | One key or credential each, named on its own so the cache around it can still be cleaned: the file stays, and so does any folder that holds it. |
-| The keys of desktop wallets and key tools: Bitcoin Core's `wallets` and `wallet.dat`, and those of Litecoin, Dogecoin, Dash, and Zcash; Monero's `wallets`; the Electrum family's, Sparrow's, Wasabi's, and Specter's; Exodus's `exodus.wallet` and `Backups`; Atomic, OneKey, Frame, Rabby, Bisq, Liana, Nunchuk, and Green; geth, Foundry, and Hardhat keystores; the Lightning nodes; and the Solana, Sui, Aptos, NEAR, Tezos, Cosmos, Cardano, Decred, Chia, Grin, and Kaspa key files, 58 places in all | Lose one and what it holds is gone unless its seed phrase was kept somewhere else. Each is named on its own, read from the project's own documentation or source, so the key stays, and so does any folder that holds it, while what comes back on its own beside it, such as a downloaded blockchain, can still go. |
+| The keys of desktop wallets and key tools: Bitcoin Core's `wallets` and `wallet.dat`, and those of Litecoin, Dogecoin, Dash, PIVX, Firo, Namecoin, Groestlcoin, Elements, Liquid, and Zcash; Monero's `wallets`; the Electrum family's, Sparrow's, Wasabi's, Ginger's, Specter's, Ashigaru's, Bitcoin Safe's, and JoinMarket's; Exodus's `exodus.wallet` and `Backups`; Atomic, OneKey, Frame, Rabby, Stack Wallet, My Wallet, Umami, Bisq, Haveno, Bison Wallet, Liana, Nunchuk, and Green; geth, Clef, Foundry, Hardhat, Ape, and Brownie keystores; the validator keys of Lighthouse, Prysm, and ethdo; the Lightning nodes; Cashu's ecash; and the Solana, Sui, Aptos, NEAR, Stellar, Starknet, Fuel, Avalanche, Tezos, Cosmos, Osmosis, Cardano, Decred, Chia, Grin, Kaspa, and Nano key files, 121 places in all | Lose one and what it holds is gone unless its seed phrase was kept somewhere else. Each is named on its own, read from the project's own documentation or source, so the key stays, and so does any folder that holds it, while what comes back on its own beside it, such as a downloaded blockchain, can still go. |
| `.config`, `.cache`, `.local`, your shell and git settings (`.zshrc`, `.gitconfig`, `.netrc`, `.npmrc`, and the like), and `.kube/config` | Shared by many tools and owned by no app. They are never removed themselves; what one tool keeps inside `.config`, `.cache`, or `.local` still can be. |
Outside your home: everything inside `/System`, `/usr`, `/bin`, `/sbin`, and `/Library/Updates`, where macOS
@@ -217,7 +217,7 @@ snapshots are explained, never deleted.
A wallet's keys can be the only way to what they hold, so Peel keeps them in four ways.
-- **Where wallets keep their keys is never removed.** The 58 places in the table at the top of this page, each
+- **Where wallets keep their keys is never removed.** The 121 places in the table at the top of this page, each
read from the wallet's own documentation or source, are refused outright by the app, the `peel` tool, and the
helper, and so is any folder that holds one. When a wallet's folder was moved to another disk and linked back,
as is common once a blockchain outgrows the startup disk, its keys are refused there as well. What comes back on