Skip to content

Commit 3728a81

Browse files
authored
Merge pull request #437 from EspressoSystems/ax/reshare-vess
Integrate resharing logic with VESS
2 parents 765fb82 + a79e0c3 commit 3728a81

File tree

4 files changed

+530
-154
lines changed

4 files changed

+530
-154
lines changed

timeboost-crypto/src/feldman.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use ark_serialize::{CanonicalSerialize, SerializationError, serialize_to_vec};
66
use ark_std::marker::PhantomData;
77
use ark_std::rand::Rng;
88
use derive_more::{Deref, From, IntoIterator};
9+
use multisig::Committee;
910
use rayon::prelude::*;
1011
use serde::{Deserialize, Serialize};
1112
use serde_with::serde_as;
@@ -33,6 +34,10 @@ impl FeldmanVssPublicParam {
3334
Self { t, n }
3435
}
3536

37+
pub fn from(c: &Committee) -> Self {
38+
Self::new(c.one_honest_threshold(), c.size())
39+
}
40+
3641
pub fn threshold(&self) -> usize {
3742
self.t.get()
3843
}

0 commit comments

Comments
 (0)