Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to derive seeds for the development accounts #1222

Open
Kofituo opened this issue Oct 15, 2023 · 1 comment
Open

How to derive seeds for the development accounts #1222

Kofituo opened this issue Oct 15, 2023 · 1 comment
Labels

Comments

@Kofituo
Copy link

Kofituo commented Oct 15, 2023

Is there a way to get the secret seed of the various development accounts without hardcoding their seed values? Currently, I've this (also opened by me).

Over there, Alice and bob's secret keys are hardcoded. However, using from_string("//Alith") (still within the link I referenced) produces a different secret key. Ideally, you'd expect that they're the same but they aren't. Thus, I wanted to know how the default accounts were created.
Thanks!

@serkixenos
Copy link

Thats not correct ETH dev keys derivation path.

Go here:
https://iancoleman.io/bip39/

Use the default dev phrase "bottom drive obey lake curtain smoke basket hold race lonely fit walk" for BIP39 mnemonic.

For coin, select ETH.

Seed is "bottom drive obey lake curtain smoke basket hold race lonely fit walk"
Derivation paths are on the left.

However, from_string wont work with these (correct) derivation paths, because substrate is breaking compatibility with BIP44 as mentioned here https://github.com/paritytech/substrate-bip39

Bottomline, looks like you will have to implement key generation on your own, but you also have correct key derivation paths now.

m/44'/60'/0'/0/0	0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac	0x02509540919faacf9ab52146c9aa40db68172d83777250b28e4679176e49ccdd9f	0x5fb92d6e98884f76de468fa3f6278f8807c48bebc13595d45af5bdc4da702133
m/44'/60'/0'/0/1	0x3Cd0A705a2DC65e5b1E1205896BaA2be8A07c6e0	0x033bc19e36ff1673910575b6727a974a9abd80c9a875d41ab3e2648dbfb9e4b518	0x8075991ce870b93a8870eca0c0f91913d12f47948ca0fd25b49c6fa7cdbeee8b
m/44'/60'/0'/0/2	0x798d4Ba9baf0064Ec19eB4F0a1a45785ae9D6DFc	0x0234637bdc0e89b5d46543bcbf8edff329d2702bc995e27e9af4b1ba009a3c2a5e	0x0b6e18cafb6ed99687ec547bd28139cafdd2bffe70e6b688025de6b445aa5c5b
m/44'/60'/0'/0/3	0x773539d4Ac0e786233D90A233654ccEE26a613D9	0x02a00d60b2b408c2a14c5d70cdd2c205db8985ef737a7e55ad20ea32cc9e7c417c	0x39539ab1876910bbf3a223d84a29e28f1cb4e2e456503e7e91ed39b2e7223d68
m/44'/60'/0'/0/4	0xFf64d3F6efE2317EE2807d223a0Bdc4c0c49dfDB	0x025cdc005b752651cd3f728fb9192182acb3a9c89e19072cbd5b03f3ee1f1b3ffa	0x7dce9bc8babb68fec1409be38c8e1a52650206a7ed90ff956ae8a6d15eeaaef4
m/44'/60'/0'/0/5	0xC0F0f4ab324C46e55D02D0033343B4Be8A55532d	0x037964b6c9d546da4646ada28a99e34acaa1d14e7aba861a9055f9bd200c8abf74	0xb9d2ea9a615f3165812e8d44de0d24da9bbd164b65c4f0573e1ce2c8dbd9c8df
m/44'/60'/0'/0/6	0x7BF369283338E12C90514468aa3868A551AB2929	0x02c7b909b4745bc4666c058444ace88d2c6a8d737e9c8dd8f28bd6b5ae426fdfc5	0x96b8a38e12e1a31dee1eab2fffdf9d9990045f5b37e44d8cc27766ef294acf18
m/44'/60'/0'/0/7	0x931f3600a299fd9B24cEfB3BfF79388D19804BeA	0x025760b3474837358b50c6ff9c2dcaf55cddb4f0c0ccdd742e184e7d10ea7cf0e4	0x0d6dcaaef49272a5411896be8ad16c01c35d6f8c18873387b71fbc734759b0ab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants