A numerical exercise on a digital signature on secp256k1
In this section, we will deep dive into the digital signature of secp256k1 in order to understand the mechanism behind the operations of implementation and validation of the digital signature.
Suppose, for instance, that the parameters of the curve are the following:
So, as we have chosen a very simple private key, it is just enough to perform a double point to obtain the public key (Q):
In this case, we proceed to calculate the public key (Q). First, we will use the following formula to calculate the double point:
Calculating Q = d * G using numbers implies replacing [d] and (G) with numbers:
Relying on the formula of the double point, let’s find the coordinates of Q (x and y), starting with x:
In the same way, let’s find the y coordinate of yQ:
So the coordinates of the public key (Q) are as...