➰Elliptic Curve in Python
Last updated
Last updated
Recall that an elliptic curve over a finite field has 3 distinct properties — , , and the field parameters. Let's define them below:
secp256k1 refers to the parameters of the elliptic curve used in Bitcoin's public-key cryptography. The name represents the specific parameters of curve:
sec: stands for Standards for Efficient Cryptography.
p: indicates that what follows are the parameters of the curve.
256: length in bits of the field size.
k: Kolbitz curve, as opposed to random. The non-random construction allows for efficient construction.
1: sequence number
The general equation of the secp256k1 curve is . Let's represent this curve using the classes we have already defined.