Function vsss_rs::pedersen::split_secret

source ·
pub fn split_secret<G, I, S>(
    threshold: usize,
    limit: usize,
    secret: G::Scalar,
    blinding: Option<G::Scalar>,
    share_generator: Option<G>,
    blind_factor_generator: Option<G>,
    rng: impl RngCore + CryptoRng
) -> VsssResult<StdPedersenResult<G, I, S>>
where G: Group + GroupEncoding + Default, I: ShareIdentifier, S: Share<Identifier = I>,
Expand description

Create shares from a secret. [G::Scalar] is the prime field blinding is the blinding factor. If None, a random value is generated in [G::Scalar]. share_generator is the generator point to use for shares. If None, the default generator is used. blind_factor_generator is the generator point to use for blinding factor shares. If None, a random generator is used