Skip to main content

Module point_arithmetic

Module point_arithmetic 

Source
Expand description

Point arithmetic implementation optimised for different curve equations

Support for formulas specialized to the short Weierstrass equation’s 𝒂-coefficient.

ModulesΒ§

sealed πŸ”’

StructsΒ§

EquationAIsGeneric
The 𝒂-coefficient of the short Weierstrass equation does not have specific properties which allow for an optimized implementation.
EquationAIsMinusThree
The 𝒂-coefficient of the short Weierstrass equation is -3.
EquationAIsZero
The 𝒂-coefficient of the short Weierstrass equation is 0.

FunctionsΒ§

debug_assert_equation_a_is_minus_three πŸ”’
debug_assert_equation_a_is_zero πŸ”’