diff --git a/frost-core/src/frost/keys.rs b/frost-core/src/frost/keys.rs index d23aa97e..6e422df5 100644 --- a/frost-core/src/frost/keys.rs +++ b/frost-core/src/frost/keys.rs @@ -50,7 +50,7 @@ pub(crate) fn compute_verifying_share( group_commitment: &VerifiableSecretSharingCommitment, peer: Identifier, ) -> VerifyingShare { - VerifyingShare::new(evaluate_vss(group_commitment, peer)) + VerifyingShare(evaluate_vss(group_commitment, peer)) } /// Computes the group public key given the group commitment. @@ -58,7 +58,9 @@ pub(crate) fn compute_verifying_share( pub(crate) fn compute_public_key( group_commitment: &VerifiableSecretSharingCommitment, ) -> VerifyingKey { - VerifyingKey::new(group_commitment.first().expect("valid commitments").value()) + VerifyingKey { + element: group_commitment.coefficients()[0].value(), + } } /// Computes the public key package given a list of commitments.