Skip to main content

Module secp256k1

Module secp256k1 

Source
Expand description

Implementation of secp256k1 elliptic curve group operations.

Points are represented either in affine form as a (x, y) coordinate tuple satisfying y^2 = x^3 + 7, or in Jacobian weighted projective coordinate system where a tuple (x, y, z) corresponds to a tuple (x/z^2, y/z^3) in affine form.

Structs§

Secp256k1
Secp256k1 - a short Weierstrass elliptic curve of the form y^2 = x^3 + 7 over the prime field of modulus 2^256 - 2^32 - 977.
Secp256k1Affine
Curve point in affine form - a tuple (x, y) that satisfies y^2 = x^3 + 7, or (0, 0) for additive identity (point at infinity).
Secp256k1EndosplitHint

Constants§

N_LIMBS

Functions§

coord_lambda
The value λ of the endomorphism λ (x, y) = (βx, y).
coord_zero
Padded zero.
select
Conditionally selects between two affine secp256k1 points.