/// Creates a random polynomial with the specified number of coefficients
Creates a random polynomial with the specified number of coefficients
Creates a random polynomial with the specified number of coefficients
pub fn random<R: CryptoRng + RngCore>(
        curve: EccCurveType,
        num_coefficients: usize,
        rng: &mut R,
    ) -> ThresholdEcdsaResult<Self> {
        let mut coefficients = Vec::with_capacity(num_coefficients);
        for _ in 0..num_coefficients {
            coefficients.push(EccScalar::random(curve, rng)?)
        }
        Self::new(curve, coefficients)
    }
pub fn random < R : CryptoRng + RngCore > ( curve : EccCurveType , num_coefficients : usize , rng : & mut R , ) -> ThresholdEcdsaResult < Self > { let mut coefficients = Vec :: with_capacity ( num_coefficients ) ; for _ in 0 .. num_coefficients { coefficients . push ( EccScalar :: random ( curve , rng ) ? ) } Self :: new ( curve , coefficients ) }
Creates a random polynomial with the specified number of coefficients
Creates a random polynomial with the specified number of coefficients
curve
EccCurveType
num_coefficients
usize
rng
&mut R