INNER CODE UNIT · Rust
public_keygen
IronCoreLabs/recrypt-rs · src/internal/mod.rs:461
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.
///
/// # Arguments
/// `payload` - value to sign; must be a type with an associated Hashable instance
/// `signing_keypair` - the Ed25519 keypair that is used to compute the signature
/// `ed25519` - Implementation of `Ed25519Signing` trait
///
/// # Return
/// SignedValue<T> - contains the value `payload`, the public signingkey, and the computed signature