Author

Topic: How do you make a private and public key (and address) from 256 bits of raw data (Read 1314 times)

hero member
Activity: 602
Merit: 500
In math we trust.
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.
legendary
Activity: 3472
Merit: 4801
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.
legendary
Activity: 1652
Merit: 1029
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?
legendary
Activity: 3682
Merit: 1580
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.
legendary
Activity: 3472
Merit: 4801
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.
legendary
Activity: 1652
Merit: 1029
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
Jump to: