/// Produces a new instance of a [PoprfServer] using a supplied RNG
///
/// # Errors
/// [`Error::Protocol`] if the protocol fails and can't be completed.
Produces a new instance of a [PoprfServer] using a supplied RNG
Produces a new instance of a [ PoprfServer ] using a supplied RNG
pub fn new<R: RngCore + CryptoRng>(rng: &mut R) -> Result<Self> {
        let mut seed = GenericArray::<_, <CS::Group as Group>::ScalarLen>::default();
        rng.fill_bytes(&mut seed);
        Self::new_from_seed(&seed, &[])
    }
pub fn new < R : RngCore + CryptoRng > ( rng : & mut R ) -> Result < Self > { let mut seed = GenericArray :: < _ , < CS :: Group as Group > :: ScalarLen > :: default ( ) ; rng . fill_bytes ( & mut seed ) ; Self :: new_from_seed ( & seed , & [ ] ) }
Produces a new instance of a [PoprfServer] using a supplied RNG
Produces a new instance of a [ PoprfServer ] using a supplied RNG
rng
&mut R
errors
[`Error::Protocol`] if the protocol fails and can't be completed.
[ ` Error :: Protocol ` ] if the protocol fails and can ' t be completed .