Trait vsss_rs::ShareSetCombiner
source · pub trait ShareSetCombiner<I, S, F, G>: Sized + AsRef<[(F, G)]> + AsMut<[(F, G)]>where
I: ShareIdentifier,
S: Share<Identifier = I>,
F: PrimeField,
G: Default + Copy + AddAssign + Mul<F, Output = G>,{
// Required method
fn create(size_hint: usize) -> Self;
// Provided method
fn combine<BB, M>(shares: BB, m: M) -> VsssResult<G>
where BB: AsRef<[S]>,
M: FnMut(&S) -> VsssResult<G> { ... }
}
Expand description
A data store for reconstructing secret shares
Required Methods§
Provided Methods§
sourcefn combine<BB, M>(shares: BB, m: M) -> VsssResult<G>
fn combine<BB, M>(shares: BB, m: M) -> VsssResult<G>
Combine the secret shares into a single secret using Lagrange interpolation
Object Safety§
This trait is not object safe.