Skip to content

Commit

Permalink
Merge pull request #184 from nickfarrow/expose-public-poly
Browse files Browse the repository at this point in the history
[frost] expose public polynomial
  • Loading branch information
LLFourn authored Jul 1, 2024
2 parents baecf4d + cba4f84 commit 27eaeec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions schnorr_fun/src/frost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,11 @@ impl EncodedFrostKey {
pub fn threshold(&self) -> usize {
self.point_polynomial.len()
}

/// The public polynomial that defines the access structure to the FROST key.
pub fn point_polynomial(&self) -> Vec<Point<Normal, Public, Zero>> {
self.point_polynomial.clone()
}
}

#[cfg(feature = "bincode")]
Expand Down

0 comments on commit 27eaeec

Please sign in to comment.