From f3f6e2101a4b7378338e27aa3fee5e8ada95aa4d Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 13 May 2020 15:50:41 +0200 Subject: [PATCH] core/cardano: explanation about seed derivation --- core/src/apps/cardano/seed.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/apps/cardano/seed.py b/core/src/apps/cardano/seed.py index fff4612fc1..96997d10fd 100644 --- a/core/src/apps/cardano/seed.py +++ b/core/src/apps/cardano/seed.py @@ -44,9 +44,10 @@ async def get_keychain(ctx: wire.Context) -> Keychain: passphrase = await get_passphrase(ctx) if mnemonic.is_bip39(): - # derive the root node from mnemonic and passphrase + # derive the root node from mnemonic and passphrase via Cardano Icarus algorithm root = bip32.from_mnemonic_cardano(mnemonic.get_secret().decode(), passphrase) else: + # derive the root node via SLIP-0023 seed = mnemonic.get_seed(passphrase) root = bip32.from_seed(seed, "ed25519 cardano seed")