mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-02 19:01:04 +00:00
cardano: derive the root and then cache
This commit is contained in:
parent
c9a6ada14f
commit
7d7ffe3b67
@ -47,14 +47,10 @@ async def get_keychain(ctx: wire.Context) -> Keychain:
|
||||
seed = mnemonic.get_seed(passphrase)
|
||||
root = bip32.from_seed(seed, "ed25519 cardano seed")
|
||||
|
||||
storage.cache.set(cache.APP_CARDANO_ROOT, root)
|
||||
|
||||
# let's not modify the one in the cache
|
||||
root = root.clone()
|
||||
|
||||
# derive the namespaced root node
|
||||
for i in SEED_NAMESPACE:
|
||||
root.derive_cardano(i)
|
||||
storage.cache.set(cache.APP_CARDANO_ROOT, root)
|
||||
|
||||
keychain = Keychain(SEED_NAMESPACE, root)
|
||||
return keychain
|
||||
|
Loading…
Reference in New Issue
Block a user