Skip to content

Commit

Permalink
feat: my address && slide to unlock && update resource files (#220)
Browse files Browse the repository at this point in the history
* feat: my address && slide to unlock && update resource files

Signed-off-by: Lu1zz <[email protected]>

* fix: style

Signed-off-by: Lu1zz <[email protected]>

---------

Signed-off-by: Lu1zz <[email protected]>
  • Loading branch information
Lu1zz authored Dec 26, 2024
1 parent 4fea5bd commit 5bb965e
Show file tree
Hide file tree
Showing 475 changed files with 2,170 additions and 25 deletions.
2 changes: 2 additions & 0 deletions core/src/all_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@
import trezor.lvglui.lv_symbols
trezor.lvglui.scrs
import trezor.lvglui.scrs
trezor.lvglui.scrs.address
import trezor.lvglui.scrs.address
trezor.lvglui.scrs.app_guide
import trezor.lvglui.scrs.app_guide
trezor.lvglui.scrs.bip39_dotmap
Expand Down
9 changes: 9 additions & 0 deletions core/src/storage/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ def __init__(self) -> None:
session.clear()
_SESSIONLESS_CACHE.clear()

_SESSION_ID = bytearray(_SESSION_ID_LENGTH)

gc.collect()


Expand Down Expand Up @@ -212,6 +214,8 @@ def start_session(received_session_id: bytes | None = None) -> bytes | None:
return selected_session.export_session_id()
else:
received_session_id = se_thd89.start_session(received_session_id)
if received_session_id is not None:
_SESSION_ID[:] = received_session_id
return received_session_id


Expand All @@ -225,9 +229,14 @@ def end_current_session() -> None:
_SESSIONS[_active_session_idx].clear()
_active_session_idx = None
else:
_SESSION_ID[:] = b""
se_thd89.end_session()


def get_session_id() -> bytes:
return bytes(_SESSION_ID)


def is_session_started() -> bool:
if not utils.USE_THD89:
return _active_session_idx is not None
Expand Down
Binary file added core/src/trezor/lvglui/assets/addr/btc-btc-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/src/trezor/lvglui/assets/addr/btn-doubleup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/src/trezor/lvglui/assets/addr/chain-cfx-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/src/trezor/lvglui/assets/addr/chain-near-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/src/trezor/lvglui/assets/addr/evm-avax-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/src/trezor/lvglui/assets/addr/evm-bnb-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/src/trezor/lvglui/assets/addr/evm-matic-24.png
Binary file added core/src/trezor/lvglui/assets/addr/point.png
Binary file added core/src/trezor/lvglui/assets/addr/wallet.png
Binary file added core/src/trezor/lvglui/assets/prompt/about.png
Binary file added core/src/trezor/lvglui/assets/prompt/add.png
Binary file added core/src/trezor/lvglui/assets/prompt/arrow-down.png
Binary file added core/src/trezor/lvglui/assets/prompt/arrow-left.png
Binary file added core/src/trezor/lvglui/assets/prompt/arrow-right.png
Binary file added core/src/trezor/lvglui/assets/prompt/arrow-up.png
Binary file added core/src/trezor/lvglui/assets/prompt/banned.png
Binary file added core/src/trezor/lvglui/assets/prompt/ble-enabled.png
Binary file added core/src/trezor/lvglui/assets/prompt/branches.png
Binary file added core/src/trezor/lvglui/assets/prompt/btn-del.png
Binary file added core/src/trezor/lvglui/assets/prompt/btn-eye.png
Binary file added core/src/trezor/lvglui/assets/prompt/charging.png
Binary file added core/src/trezor/lvglui/assets/prompt/close.png
Binary file added core/src/trezor/lvglui/assets/prompt/connect.png
Binary file added core/src/trezor/lvglui/assets/prompt/crypto.png
Binary file added core/src/trezor/lvglui/assets/prompt/danger.png
Binary file added core/src/trezor/lvglui/assets/prompt/developer.png
Binary file added core/src/trezor/lvglui/assets/prompt/down-home.png
Binary file added core/src/trezor/lvglui/assets/prompt/fcc-logo.png
Binary file added core/src/trezor/lvglui/assets/prompt/general.png
Binary file added core/src/trezor/lvglui/assets/prompt/homescreen.png
Binary file added core/src/trezor/lvglui/assets/prompt/language.png
Binary file added core/src/trezor/lvglui/assets/prompt/left-delete.png
Binary file added core/src/trezor/lvglui/assets/prompt/lock.png
Binary file added core/src/trezor/lvglui/assets/prompt/nav-back.png
Binary file added core/src/trezor/lvglui/assets/prompt/nav-close.png
Binary file added core/src/trezor/lvglui/assets/prompt/nav-more.png
Binary file added core/src/trezor/lvglui/assets/prompt/nfc-bg.png
Binary file added core/src/trezor/lvglui/assets/prompt/notice.png
Binary file added core/src/trezor/lvglui/assets/prompt/point.png
Binary file added core/src/trezor/lvglui/assets/prompt/poweroff.png
Binary file added core/src/trezor/lvglui/assets/prompt/recovery.png
Binary file added core/src/trezor/lvglui/assets/prompt/security.png
Binary file added core/src/trezor/lvglui/assets/prompt/slide-down.jpg
Binary file added core/src/trezor/lvglui/assets/prompt/slide-down.png
Binary file added core/src/trezor/lvglui/assets/prompt/success.png
Binary file added core/src/trezor/lvglui/assets/prompt/sweep-up.png
Binary file added core/src/trezor/lvglui/assets/prompt/unknown.png
Binary file added core/src/trezor/lvglui/assets/prompt/unlock.png
Binary file added core/src/trezor/lvglui/assets/prompt/up-home.png
Binary file added core/src/trezor/lvglui/assets/prompt/usb.png
Binary file added core/src/trezor/lvglui/assets/prompt/wallet.png
Binary file added core/src/trezor/lvglui/assets/prompt/warning.png
Loading

0 comments on commit 5bb965e

Please sign in to comment.