mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
fix: fix thp on btc_only fw
[no changelog]
This commit is contained in:
parent
883af07454
commit
894c9989e6
@ -710,6 +710,8 @@ if FROZEN:
|
||||
SOURCE_PY_DIR + 'apps/bitcoin/sign_tx/zcash_v4.py',
|
||||
])
|
||||
)
|
||||
if THP:
|
||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/thp/*.py'))
|
||||
|
||||
if EVERYTHING:
|
||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/binance/*.py'))
|
||||
@ -752,9 +754,6 @@ if FROZEN:
|
||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/tezos/*.py'))
|
||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/enums/Tezos*.py'))
|
||||
|
||||
if THP:
|
||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/thp/*.py'))
|
||||
|
||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/zcash/*.py'))
|
||||
|
||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/webauthn/*.py'))
|
||||
|
@ -66,7 +66,25 @@ async def get_seed() -> bytes:
|
||||
return common_seed
|
||||
|
||||
|
||||
if not utils.BITCOIN_ONLY:
|
||||
if utils.BITCOIN_ONLY:
|
||||
# === Bitcoin_only variant ===
|
||||
# We want to derive the normal seed ONLY
|
||||
|
||||
async def derive_and_store_roots(ctx: Context, msg: ThpCreateNewSession) -> None:
|
||||
|
||||
if msg.passphrase is not None and msg.on_device:
|
||||
raise DataError("Passphrase provided when it shouldn't be!")
|
||||
|
||||
from trezor import wire
|
||||
|
||||
if not storage_device.is_initialized():
|
||||
raise wire.NotInitialized("Device is not initialized")
|
||||
|
||||
passphrase = await get_passphrase(msg)
|
||||
common_seed = mnemonic.get_seed(passphrase)
|
||||
ctx.cache.set(APP_COMMON_SEED, common_seed)
|
||||
|
||||
else:
|
||||
# === Cardano variant ===
|
||||
# We want to derive both the normal seed and the Cardano seed together, AND
|
||||
# expose a method for Cardano to do the same
|
||||
|
Loading…
Reference in New Issue
Block a user