cardano-serialization-lib
cardano-serialization-lib copied to clipboard
Generate a legacy Daedalus key from recovery phrase
Cardano contains two ways to derive child keys: v1 for Daedalus addresses and v2 for everything else.
This functionality was provided by an old WASM library for Cardano (https://www.npmjs.com/package/cardano-wallet), but we didn't add it to our library.
I'm not sure if we need to introduce new dependencies to add this functionality, but it may be useful to have a derive function added to LegacyDaedalusPrivateKey along with a from_bip39_entropy function.
We can assume purpose is 44' and cointype is 1815' for Dd addresses.
FYI I attempted to add this in https://github.com/Emurgo/cardano-serialization-lib/pull/104