change GroupCommitment to use AffinePoint

This commit is contained in:
Alfredo Garcia 2021-05-21 19:42:06 -03:00 committed by Deirdre Connolly
parent 2db8e5908d
commit c2c581b397
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ pub struct ShareCommitment(Vec<Commitment>);
/// 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.