Skip to content

Commit

Permalink
expose missing structs in ciphersuite crates (#405)
Browse files Browse the repository at this point in the history
expose VerifyingShare, NonceCommitment and SignatureResponse in ciphersuite crates
  • Loading branch information
conradoplg authored Jun 22, 2023
1 parent c03402b commit 8defd2c
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frost-ed25519/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ pub mod keys {
/// A secret scalar value representing a signer's share of the group secret.
pub type SigningShare = frost::keys::SigningShare<E>;

/// A public group element that represents a single signer's public verification share.
pub type VerifyingShare = frost::keys::VerifyingShare<E>;

/// A FROST(Ed25519, SHA-512) keypair, which can be generated either by a trusted dealer or using
/// a DKG.
///
Expand Down Expand Up @@ -311,6 +314,9 @@ pub mod round1 {
/// SigningCommitment can be used for exactly *one* signature.
pub type SigningCommitments = frost::round1::SigningCommitments<E>;

/// A commitment to a signing nonce share.
pub type NonceCommitment = frost::round1::NonceCommitment<E>;

/// Performed once by each participant selected for the signing operation.
///
/// Generates the signing nonces and commitments to be used in the signing
Expand Down Expand Up @@ -339,6 +345,9 @@ pub mod round2 {
/// shares into the joint signature.
pub type SignatureShare = frost::round2::SignatureShare<E>;

/// A representation of a single signature share used in FROST structures and messages.
pub type SignatureResponse = frost::round2::SignatureResponse<E>;

/// Performed once by each participant selected for the signing operation.
///
/// Receives the message to be signed and a set of signing commitments and a set
Expand Down
9 changes: 9 additions & 0 deletions frost-ed448/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ pub mod keys {
/// A secret scalar value representing a signer's share of the group secret.
pub type SigningShare = frost::keys::SigningShare<E>;

/// A public group element that represents a single signer's public verification share.
pub type VerifyingShare = frost::keys::VerifyingShare<E>;

/// A FROST(Ed448, SHAKE256) keypair, which can be generated either by a trusted dealer or using
/// a DKG.
///
Expand Down Expand Up @@ -305,6 +308,9 @@ pub mod round1 {
/// SigningCommitment can be used for exactly *one* signature.
pub type SigningCommitments = frost::round1::SigningCommitments<E>;

/// A commitment to a signing nonce share.
pub type NonceCommitment = frost::round1::NonceCommitment<E>;

/// Performed once by each participant selected for the signing operation.
///
/// Generates the signing nonces and commitments to be used in the signing
Expand Down Expand Up @@ -333,6 +339,9 @@ pub mod round2 {
/// shares into the joint signature.
pub type SignatureShare = frost::round2::SignatureShare<E>;

/// A representation of a single signature share used in FROST structures and messages.
pub type SignatureResponse = frost::round2::SignatureResponse<E>;

/// Performed once by each participant selected for the signing operation.
///
/// Receives the message to be signed and a set of signing commitments and a set
Expand Down
9 changes: 9 additions & 0 deletions frost-p256/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ pub mod keys {
/// A secret scalar value representing a signer's share of the group secret.
pub type SigningShare = frost::keys::SigningShare<P>;

/// A public group element that represents a single signer's public verification share.
pub type VerifyingShare = frost::keys::VerifyingShare<P>;

/// A FROST(P-256, SHA-256) keypair, which can be generated either by a trusted dealer or using
/// a DKG.
///
Expand Down Expand Up @@ -335,6 +338,9 @@ pub mod round1 {
/// SigningCommitment can be used for exactly *one* signature.
pub type SigningCommitments = frost::round1::SigningCommitments<P>;

/// A commitment to a signing nonce share.
pub type NonceCommitment = frost::round1::NonceCommitment<P>;

/// Performed once by each participant selected for the signing operation.
///
/// Generates the signing nonces and commitments to be used in the signing
Expand Down Expand Up @@ -363,6 +369,9 @@ pub mod round2 {
/// shares into the joint signature.
pub type SignatureShare = frost::round2::SignatureShare<P>;

/// A representation of a single signature share used in FROST structures and messages.
pub type SignatureResponse = frost::round2::SignatureResponse<P>;

/// Performed once by each participant selected for the signing operation.
///
/// Receives the message to be signed and a set of signing commitments and a set
Expand Down
9 changes: 9 additions & 0 deletions frost-ristretto255/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ pub mod keys {
/// A secret scalar value representing a signer's share of the group secret.
pub type SigningShare = frost::keys::SigningShare<R>;

/// A public group element that represents a single signer's public verification share.
pub type VerifyingShare = frost::keys::VerifyingShare<R>;

/// A FROST(ristretto255, SHA-512) keypair, which can be generated either by a trusted dealer or using
/// a DKG.
///
Expand Down Expand Up @@ -299,6 +302,9 @@ pub mod round1 {
/// SigningCommitment can be used for exactly *one* signature.
pub type SigningCommitments = frost::round1::SigningCommitments<R>;

/// A commitment to a signing nonce share.
pub type NonceCommitment = frost::round1::NonceCommitment<R>;

/// Performed once by each participant selected for the signing operation.
///
/// Generates the signing nonces and commitments to be used in the signing
Expand Down Expand Up @@ -327,6 +333,9 @@ pub mod round2 {
/// shares into the joint signature.
pub type SignatureShare = frost::round2::SignatureShare<R>;

/// A representation of a single signature share used in FROST structures and messages.
pub type SignatureResponse = frost::round2::SignatureResponse<R>;

/// Performed once by each participant selected for the signing operation.
///
/// Receives the message to be signed and a set of signing commitments and a set
Expand Down
9 changes: 9 additions & 0 deletions frost-secp256k1/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ pub mod keys {
/// A secret scalar value representing a signer's share of the group secret.
pub type SigningShare = frost::keys::SigningShare<S>;

/// A public group element that represents a single signer's public verification share.
pub type VerifyingShare = frost::keys::VerifyingShare<S>;

/// A FROST(secp256k1, SHA-256) keypair, which can be generated either by a trusted dealer or using
/// a DKG.
///
Expand Down Expand Up @@ -334,6 +337,9 @@ pub mod round1 {
/// SigningCommitment can be used for exactly *one* signature.
pub type SigningCommitments = frost::round1::SigningCommitments<S>;

/// A commitment to a signing nonce share.
pub type NonceCommitment = frost::round1::NonceCommitment<S>;

/// Performed once by each participant selected for the signing operation.
///
/// Generates the signing nonces and commitments to be used in the signing
Expand Down Expand Up @@ -362,6 +368,9 @@ pub mod round2 {
/// shares into the joint signature.
pub type SignatureShare = frost::round2::SignatureShare<S>;

/// A representation of a single signature share used in FROST structures and messages.
pub type SignatureResponse = frost::round2::SignatureResponse<S>;

/// Performed once by each participant selected for the signing operation.
///
/// Receives the message to be signed and a set of signing commitments and a set
Expand Down

0 comments on commit 8defd2c

Please sign in to comment.