You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I appreciate the addition of mul_mod in the release candidate 0.6.0. So, thank you!
While exploring this new function I received errors when using certain types. For example:
use crypto_bigint::{U576, NonZero};
pub fn main() {
let p = NonZero::new(U576::from(3u32)).unwrap();
let a = U576::from(1u32);
let b = U576::from(1u32);
a.mul_mod(&b, &p);
}
gives the following error when building:
the trait bound `Uint<9>: crypto_bigint::Concat` is not satisfied
...
| a.mul_mod(&b, &p);
| ^^^^^^^ the trait `ConcatMixed` is not implemented for `Uint<9>`, which is required by `Uint<9>: crypto_bigint::Concat`
However, swapping U576 for U256 builds w/out error. I have not tested against other types.
The text was updated successfully, but these errors were encountered:
The bound appears to be required because MontyForm::new uses rem of a double-wide UInt in its calculation of R2, since rem_wide is not defined (only rem_wide_vartime).
I think Concat of U576 might be gated on the extra-sizes feature.
I appreciate the addition of
mul_mod
in the release candidate0.6.0
. So, thank you!While exploring this new function I received errors when using certain types. For example:
gives the following error when building:
However, swapping
U576
forU256
builds w/out error. I have not tested against other types.The text was updated successfully, but these errors were encountered: