Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: digaran on June 24, 2023, 08:52:22 PM



Title: 🖤
Post by: digaran on June 24, 2023, 08:52:22 PM
🖤


Title: Re: Y coordinates, their differences and mathematical relations
Post by: o_e_l_e_o on June 25, 2023, 06:55:46 AM
Their difference is the same as F =

fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f
This is the finite field over which secp256k1 is defined. It is more commonly given the symbol p. Any calculations done in secp256k1 need to be done modulo p.

So to invert a y coordinate over the x axis like this, you simply do -y = p-y

This explains why the difference between your two y coordinates is p.