mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-23 11:44:19 +01:00
mint: add seed decrypt (#403)
* mint: add seed decrypt * add mint seed decryoption and migration tool
This commit is contained in:
@@ -17,7 +17,7 @@ def find_env_file():
|
||||
if not os.path.isfile(env_file):
|
||||
env_file = os.path.join(str(Path.home()), ".cashu", ".env")
|
||||
if os.path.isfile(env_file):
|
||||
env.read_env(env_file)
|
||||
env.read_env(env_file, recurse=False, override=True)
|
||||
else:
|
||||
env_file = ""
|
||||
return env_file
|
||||
@@ -49,6 +49,7 @@ class EnvSettings(CashuSettings):
|
||||
|
||||
class MintSettings(CashuSettings):
|
||||
mint_private_key: str = Field(default=None)
|
||||
mint_seed_decryption_key: str = Field(default=None)
|
||||
mint_derivation_path: str = Field(default="m/0'/0'/0'")
|
||||
mint_derivation_path_list: List[str] = Field(default=[])
|
||||
mint_listen_host: str = Field(default="127.0.0.1")
|
||||
|
||||
Reference in New Issue
Block a user