INNER CODE UNIT · Rust
gen_rth_root
IronCoreLabs/recrypt-rs · src/internal/mod.rs:453
pub fn gen_rth_root<T>(pairing: &Pairing<T>, fp12_elem: Fp12Elem<T>) -> Fp12Elem<T>
where
T: ExtensionField + PairingConfig,
{
pairing.final_exp(fp12_elem)
}
///Generate a public key using the private key and generator point.
pub fn public_keygen<T>(private_key: PrivateKey<T>, generator: HomogeneousPoint<T>) -> PublicKey<T>
where
T: Field + BitRepr + ConstantSwap<LimbType>,
{
PublicKey {
value: generator * private_key.value,
}
}
/// Signs some value of type `T` (and the publicSigningKey) with privateSigningKey.