iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.49k stars 1.44k forks source link

Allow freeform entry of bip44 values #311

Open csmcolo opened 5 years ago

csmcolo commented 5 years ago

Would it be possible to have free form entry of the Purpose and Coin values in the Derivation path or is there more that needs to go into it to get the right answer? I would like to be able to enter a derivation path for coin 2017 (KIN) but it's not on the dropdown and the coin field is locked. If it can't be freeform can someone point me in how to modify /src to add a new coin?

iancoleman commented 5 years ago

Use the bip32 tab with derivation path m/44'/2017'/0'/0

iancoleman commented 5 years ago

This is a good example of what is needed to add a new coin:

https://github.com/iancoleman/bip39/pull/268/files

csmcolo commented 5 years ago

Thank you very much for the quick response!

csmcolo commented 5 years ago

Ian,

I have tried your suggestion to use bip32 with the derivation path above but it doesn't work out quite right. It generates values but they are in the wrong format. KIN is based on Stellar and the public key I made with my ledger and a test setup has a different format than the keys generated by the site (GB7D4J3KOECWGFJF7X75T7W5VEORQ5EO7CLWIYVE2IQ3NZ5PVYRFACTE vs 0342ddcfaba54df084471c679eb853d6c159353d55a6a137764532bfab3eeb3cf4) for what should be the same output.

I am guessing I am going to need to learn a bunch more (or enlist some smart folks from the KIN community) and put in a pull request and provide you the code it will take to generate the keys correctly (based on https://www.reddit.com/r/Stellar/comments/7k0pdf/stellar_lumen_and_ledger_nano_s/) but just in case I am missing something easy I thought I would post again. Any help appreciated.