ZenGo-X / curv

Rust language general purpose elliptic curve cryptography.
MIT License
264 stars 111 forks source link

Improve BigInt #110

Closed survived closed 3 years ago

survived commented 3 years ago

PR expands set of traits implemented for BigInt (based on my experience of updating upstream crates), and also changes Converter+Modulo traits.

Important change here is that Modulo::mod_pow will panic if exponent is negative. Negative exponents should be handled via mod_inv.