From c2c581b3978f1b4b5f4d706ee1aaca54425b7020 Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Fri, 21 May 2021 19:42:06 -0300 Subject: [PATCH] change GroupCommitment to use AffinePoint --- src/frost.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frost.rs b/src/frost.rs index 1cc2d56..20d8e90 100644 --- a/src/frost.rs +++ b/src/frost.rs @@ -92,7 +92,7 @@ pub struct ShareCommitment(Vec); /// The product of all signers' individual commitments, published as part of the /// final signature. -pub struct GroupCommitment(jubjub::ExtendedPoint); +pub struct GroupCommitment(jubjub::AffinePoint); /// Secret and public key material generated by a dealer performing /// [`keygen_with_dealer`]. @@ -503,7 +503,7 @@ fn gen_group_commitment( accumulator += commitment.hiding + (commitment.binding * rho_i) } - Ok(GroupCommitment(accumulator)) + Ok(GroupCommitment(jubjub::AffinePoint::from(accumulator))) } /// Generates the challenge as is required for Schnorr signatures.