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 private keys of Bisq 2

Țugui Dragoșb62ba454abd7
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
index 93aea665..e91d2bed 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
@@ -126,6 +126,7 @@ public enum ProtectedData: Sendable {
"Library/Application Support/joinmarket/wallets",
"Library/Application Support/Bisq/btc_mainnet/wallet",
"Library/Application Support/Bisq/btc_mainnet/keys",
+ "Library/Application Support/Bisq2/db/private",
"Library/Application Support/Haveno/xmr_mainnet/wallet",
"Library/Application Support/Haveno/xmr_mainnet/keys",
"Library/Application Support/Haveno-reto/xmr_mainnet/wallet",
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index a9709fa3..a3e92e42 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -76,6 +76,7 @@ struct DesktopWalletTests {
".grim/main/wallets/1767225600/wallet_data/wallet.seed",
"Library/Nano/wallets.ldb",
"Library/Nano/backup/5F2B1E9C0D4A7B3E6C8D1F0A2B4C6E8D0F1A3B5C7D9E0F2A4B6C8D0E2F4A6B8C.json",
+ "Library/Application Support/Bisq2/db/private/key_bundle_store.protobuf",
])
func refusesWhatAWalletKeeps(_ key: String) throws {
let directory = try TemporaryDirectory()
@@ -116,6 +117,7 @@ struct DesktopWalletTests {
"Library/Application Support/joinmarket/logs/joinmarket.log",
".grim/main/chain_data/multi_lmdb/data.mdb",
"Library/Nano/data.ldb",
+ "Library/Application Support/Bisq2/bisq.log",
])
func leavesWhatComesBackOnItsOwn(_ cache: String) throws {
let directory = try TemporaryDirectory()