Skip to content

Commit

Permalink
[frost] small accessibility fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfarrow committed Dec 24, 2023
1 parent 6899c94 commit 13a8359
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions schnorr_fun/src/frost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,11 @@ impl<T: Copy + PointType> FrostKey<T> {
pub fn threshold(&self) -> usize {
self.point_polynomial.len()
}

/// The public image of the key's polynomial on the elliptic curve.
pub fn point_polynomial(&self) -> Vec<Point> {
self.point_polynomial.clone()
}
}

impl FrostKey<Normal> {
Expand Down
2 changes: 1 addition & 1 deletion schnorr_fun/src/share_backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub fn polynomial_identifier<H: Default + Digest<OutputSize = U32>>(
pub fn encode_backup<H: Default + Digest<OutputSize = U32>>(
polynomial: &Vec<Point>,
secret_share: &Scalar,
share_index: &Scalar,
share_index: &Scalar<Public>,
) -> String {
let threshold = polynomial.len();
let mut data = [u5::default(); 1 + 4 + 52 + 52];
Expand Down

0 comments on commit 13a8359

Please sign in to comment.