Bitcoin Forum
June 18, 2024, 12:33:51 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do you make a private and public key (and address) from 256 bits of raw data  (Read 1299 times)
spooderman (OP)
Legendary
*
Offline Offline

Activity: 1652
Merit: 1029


View Profile WWW
August 21, 2014, 06:57:32 PM
 #1

So I was inspired by the legend Andreas M anotopotoolousposuts to flip a coin 256 times and generate my own private key. I will use this as my cold storage.

How do I then hash the 256 bits of data into a private and then public key? Is it possible to do the maths without a computer at all? If not, is there some code I can run on an offline computer?

Thanks

Society doesn't scale.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4668



View Profile
August 21, 2014, 07:37:19 PM
 #2

So I was inspired by the legend Andreas M anotopotoolousposuts to flip a coin 256 times and generate my own private key. I will use this as my cold storage.

How do I then hash the 256 bits of data into a private

You don't.  The 256 bits of data ARE the private key.

and then public key?

The public key is not computed with a hash, it is accomplished with ECDSA using the Secp256k1 curve.

Is it possible to do the maths without a computer at all?

It would be rather tedious and complex to accomplish it with pencil and paper.

If not, is there some code I can run on an offline computer?

Convert to hexadecimal.  Then you can run the code from https://brainwallet.github.io/ on an offline computer and use your 256 bit value as the "secret exponent".

Alternatively, you can use paper and pencil to convert from binary to Wallet Import Format:
https://en.bitcoin.it/wiki/Wallet_import_format

Then import the resulting private key into an offline wallet such as Bitcoin Core or Armory.

The wallet software will take care of generating the public key and bitcoin address for you.
Abdussamad
Legendary
*
Offline Offline

Activity: 3640
Merit: 1568



View Profile
August 21, 2014, 07:53:08 PM
 #3

So I was inspired by the legend Andreas M anotopotoolousposuts to flip a coin 256 times and generate my own private key. I will use this as my cold storage.

How do I then hash the 256 bits of data into a private and then public key? Is it possible to do the maths without a computer at all? If not, is there some code I can run on an offline computer?

Thanks

1. using a computer
2. no
3. bitaddress.org brainwallet tab should be the simplest.
spooderman (OP)
Legendary
*
Offline Offline

Activity: 1652
Merit: 1029


View Profile WWW
August 22, 2014, 02:58:25 AM
 #4

Thanks for the help guise Smiley

@danny

I thought that the private key that starts with the "5" was a hashed version of the 256 bits of raw data. I'm guessing this is the wallet import format you mentioned?

Society doesn't scale.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4668



View Profile
August 22, 2014, 05:19:19 AM
 #5

Thanks for the help guise Smiley

@danny

I thought that the private key that starts with the "5" was a hashed version of the 256 bits of raw data. I'm guessing this is the wallet import format you mentioned?

Yes. See the link for details.
tsoPANos
Hero Member
*****
Offline Offline

Activity: 602
Merit: 500

In math we trust.


View Profile
August 22, 2014, 08:56:02 AM
 #6

you cloud also use dice instead of coin flipping.
bitaddress.org , wallet details tab.
I will save you time as you will need to draw the dice 99 times, instead of 256 wit coin flipping.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!