I'm using this page
http://gobittest.appspot.com/PrivateKey to generate WIFs for importing keys via "bitcoin-cli.exe importprivkey .... ".
Randomly generated keys result in WIFs that start with 5 and I can successfully import them into bitcoind wallet.
I have a few questions re this:
1. On the page above, if I set a private key as a number, say 1, then the WIF looks like 26k9aD1PF, which is a valid WIF and accepted, say, by Electrum wallet. However, bitcoind says "Invalid private key format".
Is there a way around it or bitcoind code has some extra restrictions re WIFs?
What kind of WIFs does the current version of bitcoind support?
2. I noticed that in the wallet dump all WIFs generated by bitcoind start with K or L, so as far as I understand they are for production of compressed public keys.
How do I generate this kind of WIFs from a private key as a number?
In this case, what's the difference from steps described on
http://gobittest.appspot.com/PrivateKey?