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 Monero wallets and keys of Haveno and RetoSwap

Țugui Dragoșc68d9e0be9f4
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
index 718fcba0..7960e808 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
@@ -112,6 +112,10 @@ public enum ProtectedData: Sendable {
".specter/devices",
"Library/Application Support/Bisq/btc_mainnet/wallet",
"Library/Application Support/Bisq/btc_mainnet/keys",
+ "Library/Application Support/Haveno/xmr_mainnet/wallet",
+ "Library/Application Support/Haveno/xmr_mainnet/keys",
+ "Library/Application Support/Haveno-reto/xmr_mainnet/wallet",
+ "Library/Application Support/Haveno-reto/xmr_mainnet/keys",
"Library/Application Support/Liana/bitcoin",
"Library/Application Support/Nunchuk",
"Library/Application Support/Blockstream/Green/wallets2",
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index 8840d0bf..6abf2921 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -21,6 +21,10 @@ struct DesktopWalletTests {
".gingerwallet/client/Wallets/Wallet.json",
".gingerwallet/client/WalletBackups/Wallet.json",
"Library/Application Support/Zcash/zecwallet-light-wallet.dat",
+ "Library/Application Support/Haveno/xmr_mainnet/wallet/haveno_XMR.keys",
+ "Library/Application Support/Haveno/xmr_mainnet/keys/sig.key",
+ "Library/Application Support/Haveno-reto/xmr_mainnet/wallet/haveno_XMR.keys",
+ "Library/Application Support/Haveno-reto/xmr_mainnet/keys/sig.key",
])
func refusesWhatAWalletKeeps(_ key: String) throws {
let directory = try TemporaryDirectory()
@@ -45,6 +49,7 @@ struct DesktopWalletTests {
"Library/Application Support/firo/blocks/blk00000.dat",
".walletwasabi/client/BitcoinStore/Main/IndexStore/MatureIndex.dat",
".gingerwallet/client/BitcoinStore/Main/IndexStore/MatureIndex.dat",
+ "Library/Application Support/Haveno-reto/xmr_mainnet/haveno.log",
])
func leavesWhatComesBackOnItsOwn(_ cache: String) throws {
let directory = try TemporaryDirectory()