Skip to main content
A trait for performing operations on Secp2561 curve points. Provides operations needed for elliptic curve cryptography, including point addition and scalar multiplication.

Signature

Examples

Trait functions

get_coordinates

Returns the x and y coordinates of the curve point.

Signature

add

Performs elliptic curve point addition. Adds self and other following the curve’s addition law and returns the resulting point.

Signature

mul

Performs scalar multiplication of a curve point. Multiplies self by the given scalar value.

Signature