Post
Topic
Board Beginners & Help
Re: how to i figure out my own private key/public key?
by
DannyHamilton
on 27/02/2015, 18:05:03 UTC
so can anyone explain a the elliptic curve? like show the math it take to get from private to public key and then address?

i've looked a lot and find something like

y^3=x^2+7

You've got your exponents switched.

The equation for the elliptic curve itself is y2=x3+ax+b
For bitcoin, a=0 and b=7 so the resulting curve is:
y2=x3+7

so is the public key equal to y and private equal to x?

No.

The public key will be a point, so it will have both an x and y component.

The private key is just a number, it doesn't exist on the curve, and it isn't x or y.

A base point is chosen on the curve. For bitcoin this base point is:
X=55066263022277343669578718895168534326250603453777594175500187360389116729240
Y=32670510020758816978083085130507043184471273380659243275938904335757337482424

Then that point is added to itself using elliptic curve point addition.  The private key indicates how many times you have to add the point to itself.  The resulting point is the public key.

For a reasonably understandable explanation of how it all works, read through the three pages of this ars technica article:
http://arstechnica.com/security/2013/10/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/