Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Sep 4, 2023
1 parent 6a34b37 commit 352e7d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frost-core/src/frost/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,17 @@ pub(crate) fn compute_verifying_share<C: Ciphersuite>(
group_commitment: &VerifiableSecretSharingCommitment<C>,
peer: Identifier<C>,
) -> VerifyingShare<C> {
VerifyingShare::new(evaluate_vss(group_commitment, peer))
VerifyingShare(evaluate_vss(group_commitment, peer))
}

/// Computes the group public key given the group commitment.
#[cfg_attr(feature = "internals", visibility::make(pub))]
pub(crate) fn compute_public_key<C: Ciphersuite>(
group_commitment: &VerifiableSecretSharingCommitment<C>,
) -> VerifyingKey<C> {
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.
Expand Down

0 comments on commit 352e7d9

Please sign in to comment.