Sep 09, · Bitcoin is a distributed, worldwide, decentralized digital money. Bitcoins are issued and managed without any central authority whatsoever: there is no government, company, or bank in charge of Bitcoin. You might be interested in Bitcoin if you like cryptography, distributed peer-to . That means it would be spendable as long as I still have the key I generated. You changed the title of my question so that it looks like I want to hash the private key and then try to turn that into a bitcoin address. Why would I want to do that? I'm changing the title to "How can I convert a SHA hash into a Bitcoin base58 private key?". Sha Bitcoin private key has value in part because it has transaction costs that are much lower than cite cards. Bitcoins area unit also scarce and embellish more difficult to change over time. The range that bitcoins are produced cuts in half active every quadruplet .
Sha256 bitcoin private keylinux - How can I convert a SHA hash into a Bitcoin base58 private key? - Bitcoin Stack Exchange
As for a canonical method of mapping a passphrase to a privkey, I don't believe there is one - after all, this functionality isn't built into the Satoshi client at least not yet so there cannot, by definition, be a canonical method. The closest thing I can think of would be the mini private key format used by Casascius physical bitcoins, which could easily be used with a passphrase instead.
Indeed Casascius' Bitcoin Address Utility is often the app of choice for those wishing to make "mental wallets" from memorized passphrases rather than random inputs. Sign up to join this community. The best answers are voted up and rise to the top. Ask Question. Asked 8 years, 8 months ago. Active 8 years, 8 months ago. Viewed 3k times. Noah Noah 1, 12 12 silver badges 19 19 bronze badges. Active Oldest Votes. While the question isn't an exact duplicate, the answer essentially is, so I'm going to quote this answer by Pieter Wuille : As is normal when doing Elliptic Curve encryption, a private key is simply a random number.
David Perry David Perry 14k 5 5 gold badges 58 58 silver badges 99 99 bronze badges. Thank you very much for your answer! Maybe hashing a second time in case the first result is larger would be a sensible behavior? Noah If Casascius would not obtain a valid private key, how do you think he would be able to obtain the public key from it?
Without a valid private key you can't have any Bitcoin Address to put the coins to, and as far as I know, every Physical Bitcoin clearly shows what address is stored in it. You're right of course, but since my question was specifically aiming at these corner cases, I think pointing out that they are simply not handled at all in the "app of choice" for brain wallets is justified.
Besides, there might be automated implementations of such a mapping which cannot afford to just ignore these cases. Anyway, criticizing the Bitcoin Address Utility was in no way my intention, but obviously it does not cover the case I was asking for. I can't say without looking over the code whether this corner case is handled at all, letalone how it is handled, but I would assume that in the extremely unlikely event of sha passcode producing an invalid privkey the BouncyCastle crypto library would throw an error rather than generating an invalid keypair.
The most common way it's handled is to reduce modulo the generator. I believe the OpenSSL libraries do this automatically. The consensus among the security community is that reducing modulo the generator has no significant effect on the security properties and there's no benefit to using more sophisticated methods.
Sign up or log in Sign up using Google. Convert the result from a byte string into Base58 to get it into the Base58Check format. This is also known as the Wallet Import Format. If you don't want to compute the key manually, there's a useful command-line utility for this called bitcoin-tool :.
Sign up to join this community. The best answers are voted up and rise to the top. Ask Question. Asked 7 years, 10 months ago. Active 1 year, 2 months ago. Viewed 26k times. Austin Burk. Austin Burk Austin Burk 2 2 gold badges 8 8 silver badges 15 15 bronze badges. Yes, this is possible. Clarification well, stating in explicit terms above. Is there some reason why you want to send your bitcoins to an unspendable public key? Nick ODell "Unspendable public key? That means it would be spendable as long as I still have the key I generated.
You changed the title of my question so that it looks like I want to hash the private key and then try to turn that into a bitcoin address. Why would I want to do that? Active Oldest Votes. Nick ODell Stephen Gornick Stephen Gornick A handy utility that does each step: gobittest. This looks pretty good!
I'll give it a shot Sunday we're going 'cross state to see frozen waves tomorrow. Expect an 'accepted' soon!