Skip to content

Commit

Permalink
Add missing derive(Getters) for dkg::{round1, round2} (#741)
Browse files Browse the repository at this point in the history
* Add missing `derive(Getters)` for `dkg::{round1, round2}`

* update CHANGELOG

---------

Co-authored-by: Conrado Gouvea <conradoplg@gmail.com>
  • Loading branch information
StackOverflowExcept1on and conradoplg authored Oct 7, 2024
1 parent 0da1938 commit 16d527c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions frost-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Entries are listed in reverse chronological order.
but it's likely to not require any code changes since most ciphersuite
implementations are probably just empty structs. The bound makes it possible
to use `frost_core::Error<C>` in `Box<dyn std::error::Error>`.
* Added getters to `round1::SecretPackage` and `round2::SecretPackage`.

## 2.0.0-rc.0

Expand Down
5 changes: 3 additions & 2 deletions frost-core/src/keys/dkg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,13 @@ pub mod round1 {
/// # Security
///
/// This package MUST NOT be sent to other participants!
#[derive(Clone, PartialEq, Eq)]
#[derive(Clone, PartialEq, Eq, Getters)]
pub struct SecretPackage<C: Ciphersuite> {
/// The identifier of the participant holding the secret.
pub(crate) identifier: Identifier<C>,
/// Coefficients of the temporary secret polynomial for the participant.
/// These are (a_{i0}, ..., a_{i(t−1)})) which define the polynomial f_i(x)
#[getter(skip)]
pub(crate) coefficients: Vec<Scalar<C>>,
/// The public commitment for the participant (C_i)
pub(crate) commitment: VerifiableSecretSharingCommitment<C>,
Expand Down Expand Up @@ -233,7 +234,7 @@ pub mod round2 {
/// # Security
///
/// This package MUST NOT be sent to other participants!
#[derive(Clone, PartialEq, Eq)]
#[derive(Clone, PartialEq, Eq, Getters)]
pub struct SecretPackage<C: Ciphersuite> {
/// The identifier of the participant holding the secret.
pub(crate) identifier: Identifier<C>,
Expand Down

0 comments on commit 16d527c

Please sign in to comment.