INNER CODE UNIT · Rust

from_fp480

IronCoreLabs/recrypt-rs · src/internal/mod.rs:153

    pub fn from_fp480(fp480: fp_480::Monty) -> PrivateKey<fp_480::Monty> {
        PrivateKey { value: fp480 }
    }
}

impl<T: Add<Output = T>> Add for PrivateKey<T> {
    type Output = Self;

    fn add(self, other: Self) -> Self {
        Self {
            value: self.value + other.value,
        }
    }
}

impl<T: Sub<Output = T>> Sub for PrivateKey<T> {
    type Output = Self;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…