<p>The seed phrase is generated in cardano-addresses, briefly explained <a href="https://github.com/input-output-hk/cardano-addresses/blob/4a369086471d0849d40ba384ca39a4ab94f23d82/core/lib/Cardano/Mnemonic.hs#L124-L149" rel="nofollow noreferrer">here</a>. This is then used as entropy for private key generation, the logic for this is in <a href="https://github.com/input-output-hk/cardano-crypto/blob/ce8f1934e4b6252084710975bd9bbc0a4648ece4/src/Cardano/Crypto/Wallet.hs#L119-L133" rel="nofollow noreferrer">cardano-crypto package</a></p>

CC BY-SA 4.0
2022-07-15T09:09:47.447Z
2022-07-22T12:44:34.080Z
2022-07-22T12:44:34.080Z
james
<p>Could anyone clarify the logic  behind Cardano master key generation from mnemonic.</p>
<p>There is a specification BIP32-Ed25519 <a href="https://github.com/LedgerHQ/orakolo/blob/master/papers/Ed25519_BIP%20Final.pdf" rel="nofollow noreferrer">https://github.com/LedgerHQ/orakolo/blob/master/papers/Ed25519_BIP%20Final.pdf</a></p>
<p>But it seems that Cardano doesn't use that algorithm <a href="https://github.com/input-output-hk/cardano-addresses/blob/e3ce58addfeefccc16db888008d57fa9a732464d/core/lib/Cardano/Address/Style/Shelley.hs#L1047-L1060" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-addresses/blob/e3ce58addfeefccc16db888008d57fa9a732464d/core/lib/Cardano/Address/Style/Shelley.hs#L1047-L1060</a></p>

<ed25519>
Logic behind Cardano master key generation from mnemonic
# Logic behind Cardano master key generation from mnemonic

(Asked by: username_0 on 2022-03-04)

Could anyone clarify the logic behind Cardano master key generation from mnemonic.

There is a specification BIP32-Ed25519 <https://github.com/LedgerHQ/orakolo/blob/master/papers/Ed25519_BIP%20Final.pdf>

But it seems that Cardano doesn't use that algorithm <https://github.com/input-output-hk/cardano-addresses/blob/e3ce58addfeefccc16db888008d57fa9a732464d/core/lib/Cardano/Address/Style/Shelley.hs#L1047-L1060>

**Tags:** ed25519

---

## 1 answers

### Answer by username_1 on 2022-07-15. Score: 3

The seed phrase is generated in cardano-addresses, briefly explained [here](https://github.com/input-output-hk/cardano-addresses/blob/4a369086471d0849d40ba384ca39a4ab94f23d82/core/lib/Cardano/Mnemonic.hs#L124-L149). This is then used as entropy for private key generation, the logic for this is in [cardano-crypto package](https://github.com/input-output-hk/cardano-crypto/blob/ce8f1934e4b6252084710975bd9bbc0a4648ece4/src/Cardano/Crypto/Wallet.hs#L119-L133)


---

