cralgebra 0.2.1

A fast crypto algebra library
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Multiplicative inverse with optional runtime context.
///
/// This operation must take an input value and return a
/// value of the same type that gives [OneDyn::one_d][crate::OneDyn::one_d]
/// when multiplied with the input, optionally
/// taking an extra parameter that describes the
/// underlying algebraic structure at runtime.
pub trait InvDyn<C>: Sized {
    /// Computes `inv` so that `self * inv = 1`. [Read more][InvDyn]
    fn inv_d(&self, ctx: &C) -> Self;
}