ledger-polkadot icon indicating copy to clipboard operation
ledger-polkadot copied to clipboard

Importing ledger account into Polkadot vault

Open Daanvdplas opened this issue 1 year ago • 11 comments

Hello, I am trying to import my ledger polkadot address into my Polkadot vault but I'm having a hard time deriving the right path and resulting to the correct address. There is also little to be found except the standard m/44'/354'/account'/0'/0'

:link: zboto Link

Daanvdplas avatar Apr 07 '24 15:04 Daanvdplas

Hey @Daanvdplas, I think that you'll find useful this issue

ftheirs avatar Apr 08 '24 22:04 ftheirs

No, I still don't know now how to manually create the derivation path to import my ledger created address into my Polkadot vault.

Daanvdplas avatar Apr 12 '24 15:04 Daanvdplas

Please explain

Daanvdplas avatar May 30 '24 16:05 Daanvdplas

@Daanvdplas, I think the other account looks really suspicious. Please be cautious. I strongly advise against doing this. The mnemonic should not be placed anywhere with an internet connection.

Have you check this code? https://github.com/jacogr/substrate-ledger-ed25519/blob/main/index.js

You'll need to set your mnemonic and then you can configure the derivation path here. https://github.com/jacogr/substrate-ledger-ed25519/blob/2d6d0e8c4f07597160cbfcf913d37fa2b2143fba/index.js#L35

You can check with the testing mnemonic first: https://github.com/Zondax/ledger-polkadot/blob/9d06c78f7ec1c096d2bccae863e932fbddde5a37/tests_zemu/tests/common.ts#L5

ftheirs avatar May 30 '24 17:05 ftheirs

@ftheirs could you confirm that this is the way?

Daanvdplas avatar May 30 '24 17:05 Daanvdplas

I haven't checked that on my end but that tool was developed by Jaco from PolkadotJS and we also have some tests for key derivation over here: https://github.com/Zondax/ledger-substrate-js/blob/main/tests/key_derivation.test.ts

ftheirs avatar May 30 '24 17:05 ftheirs

I will have a look this weekend, will not try the other stuff because I also think it looks suspicious

Daanvdplas avatar May 30 '24 17:05 Daanvdplas