carbonwallet / carbonwallet.github.io

43 stars 33 forks source link

Display Master Public Key (MPK) #2

Open JulianTosh opened 11 years ago

JulianTosh commented 11 years ago

I would like the app to display the MPK so that it can be exported to other electrum friendly web applications like acceptbit.com, and to create electrum read-only wallets.

carbonwallet commented 11 years ago

OK, I see what MPK is now. Master Public Key.

I need to do some research to see how these are generated, or if you have any pointers that would be great.

JulianTosh commented 11 years ago

If I'm not mistaken, the MPK is derived from line 70 of extjs / electrum.js

pubKey = electrum_get_pubkey(privKey);

carbonwallet commented 11 years ago

Output of that command is something like

101,205,145,113,124,239,177,124,134,74,250,223,172,116,52,234,169,248,58,113,125,229,123,73,208,115,16,216,206,69,246,186,202

And I'm guessing the input is the initial seed ? Not sure, so I still need a bit of research to see how to do this right.

JulianTosh commented 11 years ago

I think you are right, but about at the edge of my realm of knowledge at this point. I will dig for some more clues in the code.