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 the keys of Kaspa's Go wallet

Țugui Dragoșd1ba8e26925d
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
index 60797c68..8bf85ac6 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
@@ -189,6 +189,7 @@ public enum ProtectedData: Sendable {
".chia_keys",
".grin/main/wallet_data",
".kaspa",
+ "Library/Application Support/Kaspawallet",
]
/// Every protected place named from a home folder: `homeFolders`, `homeKeys` and `walletKeys`. `refuses`,
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index 7c90da0a..bc847ee6 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -72,6 +72,7 @@ struct DesktopWalletTests {
"Library/Application Support/bitcoin_safe/bitcoin/main.wallet",
"Library/Application Support/joinmarket/wallets/wallet.jmdat",
".cashu/wallet/wallet.sqlite3",
+ "Library/Application Support/Kaspawallet/kaspa-mainnet/keys.json",
])
func refusesWhatAWalletKeeps(_ key: String) throws {
let directory = try TemporaryDirectory()