Skip to content

Commit

Permalink
parse env example (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc authored Nov 21, 2024
1 parent 901b167 commit c4b639b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cashu/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c4b639b

Please sign in to comment.