Closed survived closed 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.
Modulo::mod_pow
mod_inv
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 viamod_inv
.