diff --git a/signer/src/keypair.rs b/signer/src/keypair.rs index d4f68a3a3b..09c998130b 100644 --- a/signer/src/keypair.rs +++ b/signer/src/keypair.rs @@ -100,6 +100,11 @@ impl Keypair { pub fn to_hex(&self) -> String { hex::encode(self.to_bytes()) } + + /// Performs scalar multiplication with the secret key + pub fn secret_multiply_with_curve_point(&self, multiplicand: CurvePoint) -> CurvePoint { + multiplicand.mul(self.secret.clone().into_scalar()).into_affine() + } } impl fmt::Debug for Keypair {