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.

Protect Cashu's ecash wallets

Țugui Dragoș7fe414e2b500
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
index 76e4c985..60797c68 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
@@ -164,6 +164,7 @@ public enum ProtectedData: Sendable {
".lightning/bitcoin/lightningd.sqlite3",
".lightning/bitcoin/emergency.recover",
"Library/Application Support/albyhub",
+ ".cashu",
".config/solana/id.json",
".config/stellar/identity",
".config/soroban/identity",
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index 26348b8e..7c90da0a 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -71,6 +71,7 @@ struct DesktopWalletTests {
".ashigaru/config",
"Library/Application Support/bitcoin_safe/bitcoin/main.wallet",
"Library/Application Support/joinmarket/wallets/wallet.jmdat",
+ ".cashu/wallet/wallet.sqlite3",
])
func refusesWhatAWalletKeeps(_ key: String) throws {
let directory = try TemporaryDirectory()