So yes I did choose a topic for my college final exam. I will make a presentation about bitcoin and everything...
I know how technically the bitcoin address is generated but I just do not know how to generate a public key but just calculating with a "calculator"
So I tried to do it by myself...
I know that Sha256 1st private key 0000000...001 will give this public key 0479BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798483ADA7726A3C
4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8
because this is the start point of G point (04 is the prefix then 64 letters are X and next 64 letters are Y)... So I understand this...
But in the case where I choose the second private key 0000000...002 I tried to do this...
I know for this multiplication so in my case number 2 is "10" binary so my multiplication will look like this
0 1*G
1 2*G
0 4*G
0 8*G
0 16*G
0 32*G
0 64*G
0 128*G
...
So I tried to do this manually
(I know PHP GMP functions)
Hex to decimal "79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798483ADA7726A3C46
55DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8" = 6376237641841063197511976314280597438149211753541909917794154839912978489307502
705320406087313832827571435203289817719151821525032884964596839752540411064
Then I did 2G and I got
1275247528368212639502395262856119487629842350708381983558830967982595697861500
5410640812174627665655142870406579635438303643050065769929193679505080822128
Now dec to hex
F37CCCFDF3B97758AB40C52B9D0E160E0537F9B65B9C51B2B3E502B62DF02F309075B4EE4D4788C
ABB49F7F81C221151FA2F68914D0AA833388FA11FF621A970
And I should add 04 on the beginning ...
but I found that this is not a public key of private key 2Correct public key is
04C6047F9441ED7D6D3045406E95C07CD85C778E4B8CEF3CA7ABAC09B95C709EE51AE168FEA63DC
339A3C58419466CEAEEF7F632653266D0E1236431A950CFE52A
so what I did wrong?