usawa

Signed, immutable accounting.
Log | Files | Refs | Submodules | LICENSE

commit 892303a13bd2771b892513cbb2589dea0d599f33
parent b7cb55af9e28c3339a7e3cdb4e69b5e65de0c2ed
Author: Carlosokumu <carlosokumu254@gmail.com>
Date:   Mon, 23 Mar 2026 23:27:13 +0300

use DemoWallet

Diffstat:
Mdummy/usawa/gui/components/wallet_setup.py | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/dummy/usawa/gui/components/wallet_setup.py b/dummy/usawa/gui/components/wallet_setup.py @@ -6,7 +6,7 @@ import logging import threading from usawa.core.state_manager import StateManager -from usawa.core.usawa_wallet import UsawaWallet +from usawa.crypto import DemoWallet logg = logging.getLogger("gui.wallet_setup_view") @@ -137,9 +137,11 @@ class ImportWalletDialog(Adw.Dialog): ).start() def _run_decrypt(self, privatekey_path, passphrase): - logg.info("running decrypt") + logg.info("running decrypt with passphrase; %s", passphrase) try: - wallet = UsawaWallet(keyfile=privatekey_path, passphrase=passphrase) + with open(privatekey_path, "rb") as f: + v = f.read() + wallet = DemoWallet.from_export(v, passphrase=passphrase) GLib.idle_add(self._on_success, wallet) except Exception as e: logg.error("wallet decrypt failed: %s", e)