Post
Topic
Board Development & Technical Discussion
Merits 10 from 5 users
Re: y coordinate calculation (PUBLIC KEY BITCOIN)
by
_Counselor
on 05/09/2021, 22:03:57 UTC
⭐ Merited by o_e_l_e_o (4) ,vapourminer (3) ,odolvlobo (1) ,nc50lc (1) ,ETFbitcoin (1)
Each x coordinate corresponds to two y coordinates, because of square root.

To convert between Ys, you have to calculate y2 = (y1 - secp256k1.p) * -1. One of Y is even and another is odd.

To indicate which coordinate is needed, the compressed keys stars with 02 for even Y and 03 for odd Y.