libnum
libnum copied to clipboard
Working with numbers (primes, modular, etc.)
Function `sqrtmod_prime_power` appears to fail when the modular is a power of 2 instead of a power of an odd prime: ``` >>> list(libnum.sqrtmod_prime_power(3, 2, 3)) [7, 5, 1, 3]...
update to fit python3.6-3.13, add type annotations, repack with rye for better performance, can simpley use `rye build` to build wheel
The file ecc.py was missing the important function of point negation and multiplying the point to the negative number. Without it, any practical application of this library in the part...