arithmetic-operations-for / integers-modulo-n-big-endian

:mermaid: Modular arithmetic for JavaScript
https://arithmetic-operations-for.github.io/integers-modulo-n-big-endian
GNU Affero General Public License v3.0
0 stars 1 forks source link

Simplify Montgomery#pow API #1

Open make-github-pseudonymous-again opened 4 years ago

make-github-pseudonymous-again commented 4 years ago

The exponent for Montgomery#pow should only take binary representation of exponent as input. Consumers of the library are supposed to provide their own binary conversion.

make-github-pseudonymous-again commented 4 years ago

Also assume exponent is nonnegative. Consumer can apply Montgomery#inv themselves.