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 Ethereum's validator and signer keys

Țugui Dragoș8b6b346f34d9
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
index 47dda780..5ccbb3a1 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
@@ -131,6 +131,12 @@ public enum ProtectedData: Sendable {
"Library/Application Support/umami",
"Library/Application Support/MyTonWallet",
"Library/Ethereum/keystore",
+ ".lighthouse/mainnet/validators",
+ ".lighthouse/mainnet/secrets",
+ ".lighthouse/mainnet/wallets",
+ "Library/Eth2Validators/prysm-wallet-v2",
+ "Library/Application Support/ethereum2/wallets",
+ "Library/Signer",
".foundry/keystores",
"Library/Preferences/hardhat-nodejs",
".phoenix/seed.dat",
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index 07e718a0..a7da3142 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -34,6 +34,13 @@ struct DesktopWalletTests {
".eclair/channel_seed.dat",
".eclair/seed.dat",
".eclair/mainnet/eclair.sqlite.bak",
+ ".lighthouse/mainnet/validators/0x87a5/voting-keystore.json",
+ ".lighthouse/mainnet/validators/slashing_protection.sqlite",
+ ".lighthouse/mainnet/secrets/0x87a5",
+ ".lighthouse/mainnet/wallets/main/wallet.json",
+ "Library/Eth2Validators/prysm-wallet-v2/accounts/all-accounts.keystore.json",
+ "Library/Application Support/ethereum2/wallets/main/wallet.json",
+ "Library/Signer/masterseed.json",
])
func refusesWhatAWalletKeeps(_ key: String) throws {
let directory = try TemporaryDirectory()
@@ -59,6 +66,7 @@ struct DesktopWalletTests {
".gingerwallet/client/BitcoinStore/Main/IndexStore/MatureIndex.dat",
"Library/Application Support/Haveno-reto/xmr_mainnet/haveno.log",
"Library/Containers/com.cypherstack.stackwallet/Data/Library/Caches/thumbnail.png",
+ ".lighthouse/mainnet/beacon/chain_db/000001.sst",
])
func leavesWhatComesBackOnItsOwn(_ cache: String) throws {
let directory = try TemporaryDirectory()