mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-19 22:18:13 +00:00
core/cardano: explanation about seed derivation
This commit is contained in:
parent
29db769185
commit
f3f6e2101a
@ -44,9 +44,10 @@ async def get_keychain(ctx: wire.Context) -> Keychain:
|
|||||||
|
|
||||||
passphrase = await get_passphrase(ctx)
|
passphrase = await get_passphrase(ctx)
|
||||||
if mnemonic.is_bip39():
|
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)
|
root = bip32.from_mnemonic_cardano(mnemonic.get_secret().decode(), passphrase)
|
||||||
else:
|
else:
|
||||||
|
# derive the root node via SLIP-0023
|
||||||
seed = mnemonic.get_seed(passphrase)
|
seed = mnemonic.get_seed(passphrase)
|
||||||
root = bip32.from_seed(seed, "ed25519 cardano seed")
|
root = bip32.from_seed(seed, "ed25519 cardano seed")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user