From c4b639b068c6014ddeaff1e880c2025f994b5fa5 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Thu, 21 Nov 2024 18:38:59 +0100 Subject: [PATCH] parse env example (#677) --- cashu/core/base.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cashu/core/base.py b/cashu/core/base.py index bde77872..8922752c 100644 --- a/cashu/core/base.py +++ b/cashu/core/base.py @@ -732,6 +732,12 @@ def __init__( input_fee_ppk: Optional[int] = None, id: str = "", ): + DEFAULT_SEED = "supersecretprivatekey" + if seed == DEFAULT_SEED: + raise Exception( + f"Seed is set to default value '{DEFAULT_SEED}'. Please change it." + ) + self.derivation_path = derivation_path if encrypted_seed and not settings.mint_seed_decryption_key: